Skip to content

/AWS1/CL_SGMCLARIFYTEXTCONFIG

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.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_language TYPE /AWS1/SGMCLARIFYTEXTLANGUAGE /AWS1/SGMCLARIFYTEXTLANGUAGE

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'.

iv_granularity TYPE /AWS1/SGMCLARIFYTXTGRANULARITY /AWS1/SGMCLARIFYTXTGRANULARITY

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.


Queryable Attributes

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'.

Accessible with the following methods

Method Description
GET_LANGUAGE() Getter for LANGUAGE, with configurable default
ASK_LANGUAGE() Getter for LANGUAGE w/ exceptions if field has no value
HAS_LANGUAGE() Determine if LANGUAGE has a value

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.

Accessible with the following methods

Method Description
GET_GRANULARITY() Getter for GRANULARITY, with configurable default
ASK_GRANULARITY() Getter for GRANULARITY w/ exceptions if field has no value
HAS_GRANULARITY() Determine if GRANULARITY has a value