Interface ClarifyTextConfig.Builder

    • Method Detail

      • language

        ClarifyTextConfig.Builder language​(String language)

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

        Parameters:
        language - 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:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ClarifyTextLanguage, ClarifyTextLanguage
      • granularity

        ClarifyTextConfig.Builder granularity​(String granularity)

        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.

        Parameters:
        granularity - 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:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ClarifyTextGranularity, ClarifyTextGranularity
      • granularity

        ClarifyTextConfig.Builder granularity​(ClarifyTextGranularity granularity)

        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.

        Parameters:
        granularity - 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:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ClarifyTextGranularity, ClarifyTextGranularity