interface ClarifyTextConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.SageMaker.Mixins.CfnEndpointConfigPropsMixin.ClarifyTextConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awssagemaker/mixins#CfnEndpointConfigPropsMixin_ClarifyTextConfigProperty |
Java | software.amazon.awscdk.mixins.preview.services.sagemaker.mixins.CfnEndpointConfigPropsMixin.ClarifyTextConfigProperty |
Python | aws_cdk.mixins_preview.aws_sagemaker.mixins.CfnEndpointConfigPropsMixin.ClarifyTextConfigProperty |
TypeScript | @aws-cdk/mixins-preview » aws_sagemaker » mixins » CfnEndpointConfigPropsMixin » ClarifyTextConfigProperty |
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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as sagemaker_mixins } from '@aws-cdk/mixins-preview/aws-sagemaker';
const clarifyTextConfigProperty: sagemaker_mixins.CfnEndpointConfigPropsMixin.ClarifyTextConfigProperty = {
granularity: 'granularity',
language: 'language',
};
Properties
| Name | Type | Description |
|---|---|---|
| granularity? | string | The unit of granularity for the analysis of text features. |
| language? | string | Specifies the language of the text features in [ISO 639-1](https://docs.aws.amazon.com/ https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) or ISO 639-3 code of a supported language. |
granularity?
Type:
string
(optional)
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.
language?
Type:
string
(optional)
Specifies the language of the text features in [ISO 639-1](https://docs.aws.amazon.com/ https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) or ISO 639-3 code of a supported language.
For a mix of multiple languages, use code
'xx'.

.NET
Go
Java
Python
TypeScript