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

Inherits:
Struct
  • Object
show all
Includes:
Aws::Structure
Defined in:
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)


3931
3932
3933
3934
3935
3936
# File 'lib/aws-sdk-sagemaker/types.rb', line 3931

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

#languageString

Specifies the language of the text features in [ISO 639-1]( en.wikipedia.org/wiki/List_of_ISO_639-1_codes) or [ISO 639-3] code of a supported language.

<note markdown=“1”> For a mix of multiple languages, use code ‘’xx’‘.

</note>

[1]: en.wikipedia.org/wiki/ISO_639-3

Returns:

  • (String)


3931
3932
3933
3934
3935
3936
# File 'lib/aws-sdk-sagemaker/types.rb', line 3931

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