AWS::SageMaker::EndpointConfig ClarifyTextConfig - AWS CloudFormation

AWS::SageMaker::EndpointConfig 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.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Granularity" : String, "Language" : String }

YAML

Granularity: String Language: String

Properties

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.

Required: Yes

Type: String

Allowed values: token | sentence | paragraph

Update requires: Replacement

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

Required: Yes

Type: String

Allowed 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

Update requires: Replacement