Skip to content

ClarifyTextConfig

Source code in docs_src/capo_sagemaker/types/clarify_text_config.py
class ClarifyTextConfig(TypedDict, closed=True):
    language: NotRequired[
        "capo_sagemaker.types.clarify_text_language.ClarifyTextLanguage"
    ]
    """<p>Specifies the language of the text features in <a href=" https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes">ISO 639-1</a> or <a href="https://en.wikipedia.org/wiki/ISO_639-3">ISO 639-3</a> code of a supported language. </p> <note> <p>For a mix of multiple languages, use code <code>'xx'</code>.</p> </note>"""
    granularity: NotRequired[
        "capo_sagemaker.types.clarify_text_granularity.ClarifyTextGranularity"
    ]
    """<p>The unit of granularity for the analysis of text features. For example, if the unit is <code>'token'</code>, then each token (like a word in English) of the text is treated as a feature. SHAP values are computed for each unit/feature.</p>"""

granularity instance-attribute

granularity: NotRequired[ClarifyTextGranularity]

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 instance-attribute

language: NotRequired[ClarifyTextLanguage]

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