Module Values.EntitySource

Provides information about an entity.

Sourcetype nonrec t = {
  1. score : Float_.t option;
    (*

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

    *)
  2. type_ : EntityType.t option;
    (*

    The entity type. For entity detection using the built-in model, this field contains one of the standard entity types listed below. For custom entity detection, this field contains one of the entity types that you specified when you trained your custom model.

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

    The text of the entity.

    *)
  4. beginOffset : Integer.t option;
    (*

    The zero-based offset from the beginning of the source text to the first character in the entity. This field is empty for non-text input.

    *)
  5. endOffset : Integer.t option;
    (*

    The zero-based offset from the beginning of the source text to the last character in the entity. This field is empty for non-text input.

    *)
  6. blockReferences : ListOfBlockReferences.t option;
    (*

    A reference to each block for this entity. This field is empty for plain-text input.

    *)
}
Sourceval make : ?score:??? -> ?type_:??? -> ?text:??? -> ?beginOffset:??? -> ?endOffset:??? -> ?blockReferences:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Float of Float_.t | `Integer of Integer.t | `List of [> `Structure of (string * [> `Integer of Integer.t | `List of [> `Structure of (string * [> `Integer of Integer.t | `String of String_.t ]) list ] list | `String of String_.t ]) 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