Module Values.BatchDetectKeyPhrasesResponseSource

Detects the key noun phrases found in a batch of documents.

Sourcetype nonrec t = {
  1. resultList : ListOfDetectKeyPhrasesResult.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. | `UnsupportedLanguageException of UnsupportedLanguageException.t
  6. | `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 | `UnsupportedLanguageException of UnsupportedLanguageException.t ]
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 | `UnsupportedLanguageException of UnsupportedLanguageException.t ]
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 | `Integer of Integer.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