ClarifyTextConfig - Amazon SageMaker

ClarifyTextConfig

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.

Contents

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.

Type: String

Valid Values: token | sentence | paragraph

Required: Yes

Language

Specifies the language of the text features in ISO 639-1 or ISO 639-3 code of a supported language.

Note

For a mix of multiple languages, use code 'xx'.

Type: String

Valid Values: af | sq | ar | hy | eu | bn | bg | ca | zh | hr | cs | da | nl | en | et | fi | fr | de | el | gu | he | hi | hu | is | id | ga | it | kn | ky | lv | lt | lb | mk | ml | mr | ne | nb | fa | pl | pt | ro | ru | sa | sr | tn | si | sk | sl | es | sv | tl | ta | tt | te | tr | uk | ur | yo | lij | xx

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: