Module Values.BatchDetectDominantLanguageResponseSource

Determines the dominant language of the input text for a batch of documents. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages.

Sourcetype nonrec t = {
  1. resultList : ListOfDetectDominantLanguageResult.t option;
    (*

    A list of objects containing the results of the operation. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If all of the documents contain an error, the ResultList is empty.

    *)
  2. errorList : BatchItemErrorList.t option;
    (*

    A list containing one object for each document that contained an error. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If there are no errors in the batch, the ErrorList is empty.

    *)
}
Sourcetype nonrec error = [
  1. | `BatchSizeLimitExceededException of BatchSizeLimitExceededException.t
  2. | `InternalServerException of InternalServerException.t
  3. | `InvalidRequestException of InvalidRequestException.t
  4. | `TextSizeLimitExceededException of TextSizeLimitExceededException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?resultList:??? -> ?errorList:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `BatchSizeLimitExceededException of BatchSizeLimitExceededException.t | `InternalServerException of InternalServerException.t | `InvalidRequestException of InvalidRequestException.t | `TextSizeLimitExceededException of TextSizeLimitExceededException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `BatchSizeLimitExceededException of BatchSizeLimitExceededException.t | `InternalServerException of InternalServerException.t | `InvalidRequestException of InvalidRequestException.t | `TextSizeLimitExceededException of TextSizeLimitExceededException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Integer of Integer.t | `List of [> `Structure of (string * [> `Float of Float_.t | `String of String_.t ]) list ] list | `String of String_.t ]) list ] list ]) 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