Struct aws_sdk_sagemaker::model::ClarifyTextConfig
source · #[non_exhaustive]pub struct ClarifyTextConfig { /* private fields */ }
Expand description
A parameter used to configure the SageMaker Clarify explainer to treat text features as text so that explanations are provided for individual units of text. Required only for natural language processing (NLP) explainability.
Implementations§
source§impl ClarifyTextConfig
impl ClarifyTextConfig
sourcepub fn language(&self) -> Option<&ClarifyTextLanguage>
pub fn language(&self) -> Option<&ClarifyTextLanguage>
sourcepub fn granularity(&self) -> Option<&ClarifyTextGranularity>
pub fn granularity(&self) -> Option<&ClarifyTextGranularity>
The unit of granularity for the analysis of text features. For example, if the unit is 'token'
, then each token (like a word in English) of the text is treated as a feature. SHAP values are computed for each unit/feature.
source§impl ClarifyTextConfig
impl ClarifyTextConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ClarifyTextConfig
.
Trait Implementations§
source§impl Clone for ClarifyTextConfig
impl Clone for ClarifyTextConfig
source§fn clone(&self) -> ClarifyTextConfig
fn clone(&self) -> ClarifyTextConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ClarifyTextConfig
impl Debug for ClarifyTextConfig
source§impl PartialEq<ClarifyTextConfig> for ClarifyTextConfig
impl PartialEq<ClarifyTextConfig> for ClarifyTextConfig
source§fn eq(&self, other: &ClarifyTextConfig) -> bool
fn eq(&self, other: &ClarifyTextConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.