Struct aws_sdk_sagemaker::types::ClarifyTextConfig
source · #[non_exhaustive]pub struct ClarifyTextConfig {
pub language: Option<ClarifyTextLanguage>,
pub granularity: Option<ClarifyTextGranularity>,
}
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.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.language: Option<ClarifyTextLanguage>
Specifies the language of the text features in ISO 639-1 or ISO 639-3 code of a supported language.
For a mix of multiple languages, use code 'xx'
.
granularity: 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.
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() -> ClarifyTextConfigBuilder
pub fn builder() -> ClarifyTextConfigBuilder
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClarifyTextConfig
impl Debug for ClarifyTextConfig
source§impl PartialEq for ClarifyTextConfig
impl PartialEq for ClarifyTextConfig
source§fn eq(&self, other: &ClarifyTextConfig) -> bool
fn eq(&self, other: &ClarifyTextConfig) -> bool
self
and other
values to be equal, and is used
by ==
.