Class: Aws::SageMaker::Types::ClarifyTextConfig

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb

Overview

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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#granularityString

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.

Returns:

  • (String)


4145
4146
4147
4148
4149
4150
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 4145

class ClarifyTextConfig < Struct.new(
  :language,
  :granularity)
  SENSITIVE = []
  include Aws::Structure
end

#languageString

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

Returns:

  • (String)


4145
4146
4147
4148
4149
4150
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 4145

class ClarifyTextConfig < Struct.new(
  :language,
  :granularity)
  SENSITIVE = []
  include Aws::Structure
end