Module Values_0.ClarifyTextConfigSource

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.

Sourcetype nonrec t = {
  1. language : ClarifyTextLanguage.t;
    (*

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

    *)
  2. granularity : ClarifyTextGranularity.t;
    (*

    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.

    *)
}
Sourceval context_ : string
Sourceval make : language:ClarifyTextLanguage.t -> granularity:ClarifyTextGranularity.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t