| Copyright | (c) 2013-2023 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
Amazonka.SageMaker.Types.ClarifyTextConfig
Description
Documentation
data ClarifyTextConfig Source #
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.
See: newClarifyTextConfig smart constructor.
Constructors
| ClarifyTextConfig' | |
Fields 
  | |
Instances
Arguments
| :: ClarifyTextLanguage | |
| -> ClarifyTextGranularity | |
| -> ClarifyTextConfig | 
Create a value of ClarifyTextConfig with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:language:ClarifyTextConfig', clarifyTextConfig_language - 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'.
$sel:granularity:ClarifyTextConfig', clarifyTextConfig_granularity - 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.
clarifyTextConfig_granularity :: Lens' ClarifyTextConfig ClarifyTextGranularity Source #
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.