Values.DetectEntitiesResponseSourceDetects named entities in input text when you use the pre-trained model. Detects custom entities if you have a custom entity recognition model. When detecting named entities using the pre-trained model, use plain text as the input. For more information about named entities, see Entities in the Comprehend Developer Guide. When you use a custom entity recognition model, you can input plain text or you can upload a single-page input document (text, PDF, Word, or image). If the system detects errors while processing a page in the input document, the API response includes an entry in Errors for each error. If the system detects a document-level error in your input document, the API returns an InvalidRequestException error response. For details about this exception, see Errors in semi-structured documents in the Comprehend Developer Guide.
type nonrec t = {entities : ListOfEntities.t option;A collection of entities identified in the input text. For each entity, the response provides the entity text, entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection. If your request uses a custom entity recognition model, Amazon Comprehend detects the entities that the model is trained to recognize. Otherwise, it detects the default entity types. For a list of default entity types, see Entities in the Comprehend Developer Guide.
*)documentMetadata : DocumentMetadata.t option;Information about the document, discovered during text extraction. This field is present in the response only if your request used the Byte parameter.
*)documentType : ListOfDocumentType.t option;The document type for each page in the input document. This field is present in the response only if your request used the Byte parameter.
*)blocks : ListOfBlocks.t option;Information about each block of text in the input document. Blocks are nested. A page block contains a block for each line of text, which contains a block for each word. The Block content for a Word input document does not include a Geometry field. The Block field is not present in the response for plain-text inputs.
*)errors : ListOfErrors.t option;Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.
*)}type nonrec error = [ | `InternalServerException of InternalServerException.t| `InvalidRequestException of InvalidRequestException.t| `TextSizeLimitExceededException of TextSizeLimitExceededException.t| `UnsupportedLanguageException of UnsupportedLanguageException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `InternalServerException of InternalServerException.t
| `InvalidRequestException of InvalidRequestException.t
| `ResourceUnavailableException of ResourceUnavailableException.t
| `TextSizeLimitExceededException of TextSizeLimitExceededException.t
| `Unknown_operation_error of string * string option
| `UnsupportedLanguageException of UnsupportedLanguageException.t ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `InternalServerException of InternalServerException.t
| `InvalidRequestException of InvalidRequestException.t
| `ResourceUnavailableException of ResourceUnavailableException.t
| `TextSizeLimitExceededException of TextSizeLimitExceededException.t
| `Unknown_operation_error of string * string option
| `UnsupportedLanguageException of UnsupportedLanguageException.t ]val to_value :
t ->
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `Enum of string
| `Float of Float_.t
| `Integer of Integer.t
| `List of
[> `Structure of
(string
* [> `Enum of string
| `Integer of Integer.t
| `List of
[> `String of String_.t
| `Structure of
(string
* [> `Integer of Integer.t
| `String of String_.t ])
list ]
list
| `String of String_.t ])
list ]
list
| `String of String_.t
| `Structure of
(string
* [> `List of
[> `Structure of
(string * [> `Float of Float_.t ]) list ]
list
| `Structure of
(string * [> `Float of Float_.t ]) list ])
list ])
list ]
list
| `Structure of
(string
* [> `Integer of Integer.t
| `List of
[> `Structure of (string * [> `Integer of Integer.t ]) list ]
list ])
list ])
list ]