Module Values.DominantLanguageSource

Returns the code for the dominant language in the input text and the level of confidence that Amazon Comprehend has in the accuracy of the detection.

Sourcetype nonrec t = {
  1. languageCode : String_.t option;
    (*

    The RFC 5646 language code for the dominant language. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.

    *)
  2. score : Float_.t option;
    (*

    The level of confidence that Amazon Comprehend has in the accuracy of the detection.

    *)
}
Sourceval make : ?languageCode:??? -> ?score:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Float of Float_.t | `String of String_.t ]) 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