Class CfnEndpointConfig.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.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Sagemaker
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ClarifyTextConfigProperty : Object, CfnEndpointConfig.IClarifyTextConfigProperty
Syntax (vb)
Public Class ClarifyTextConfigProperty
Inherits Object
Implements CfnEndpointConfig.IClarifyTextConfigProperty
Remarks
Required only for natural language processing (NLP) explainability.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;
var clarifyTextConfigProperty = new ClarifyTextConfigProperty {
Granularity = "granularity",
Language = "language"
};
Synopsis
Constructors
ClarifyTextConfigProperty() |
Properties
Granularity | The unit of granularity for the analysis of text features. |
Language | 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. |
Constructors
ClarifyTextConfigProperty()
public ClarifyTextConfigProperty()
Properties
Granularity
The unit of granularity for the analysis of text features.
public string Granularity { get; set; }
Property Value
System.String
Remarks
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
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.
public string Language { get; set; }
Property Value
System.String
Remarks
For a mix of multiple languages, use code 'xx'
.