Module Values.DetectEntitiesV2ResponseSource

Inspects the clinical text for a variety of medical entities and returns specific information about them such as entity category, location, and confidence score on that information. Amazon Comprehend Medical only detects medical entities in English language texts. The DetectEntitiesV2 operation replaces the DetectEntities operation. This new action uses a different model for determining the entities in your medical text and changes the way that some entities are returned in the output. You should use the DetectEntitiesV2 operation in all new applications. The DetectEntitiesV2 operation returns the Acuity and Direction entities as attributes instead of types.

Sourcetype nonrec t = {
  1. entities : EntityList.t option;
    (*

    The collection of medical entities extracted from the input text and their associated information. For each entity, the response provides the entity text, the entity category, where the entity text begins and ends, and the level of confidence in the detection and analysis. Attributes and traits of the entity are also returned.

    *)
  2. unmappedAttributes : UnmappedAttributeList.t option;
    (*

    Attributes extracted from the input text that couldn't be related to an entity.

    *)
  3. paginationToken : String_.t option;
    (*

    If the result to the DetectEntitiesV2 operation was truncated, include the PaginationToken to fetch the next page of entities.

    *)
  4. modelVersion : String_.t option;
    (*

    The version of the model used to analyze the documents. The version number looks like X.X.X. You can use this information to track the model used for a particular batch of documents.

    *)
}
Sourcetype nonrec error = [
  1. | `InternalServerException of InternalServerException.t
  2. | `InvalidEncodingException of InvalidEncodingException.t
  3. | `InvalidRequestException of InvalidRequestException.t
  4. | `ServiceUnavailableException of ServiceUnavailableException.t
  5. | `TextSizeLimitExceededException of TextSizeLimitExceededException.t
  6. | `TooManyRequestsException of TooManyRequestsException.t
  7. | `Unknown_operation_error of string * string option
]
Sourceval make : ?entities:??? -> ?unmappedAttributes:??? -> ?paginationToken:??? -> ?modelVersion:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InternalServerException of InternalServerException.t | `InvalidEncodingException of InvalidEncodingException.t | `InvalidRequestException of InvalidRequestException.t | `ServiceUnavailableException of ServiceUnavailableException.t | `TextSizeLimitExceededException of TextSizeLimitExceededException.t | `TooManyRequestsException of TooManyRequestsException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InternalServerException of InternalServerException.t | `InvalidEncodingException of InvalidEncodingException.t | `InvalidRequestException of InvalidRequestException.t | `ServiceUnavailableException of ServiceUnavailableException.t | `TextSizeLimitExceededException of TextSizeLimitExceededException.t | `TooManyRequestsException of TooManyRequestsException.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 * [> `Enum of string | `Float of Float_.t | `Integer of Integer.t | `List of [> `Structure of (string * [> `Enum of string | `Float of Float_.t | `Integer of Integer.t | `List of [> `Structure of (string * [> `Enum of string | `Float of Float_.t ]) list ] list | `String of String_.t ]) list ] list | `String of String_.t | `Structure of (string * [> `Enum of string | `Float of Float_.t | `Integer of Integer.t | `List of [> `Structure of (string * [> `Enum of string | `Float of Float_.t ]) list ] list | `String of String_.t ]) list ]) list ] list | `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