Module Values.AttributeSource

An extracted segment of the text that is an attribute of an entity, or otherwise related to an entity, such as the dosage of a medication taken. It contains information about the attribute such as id, begin and end offset within the input text, and the segment of the input text.

Sourcetype nonrec t = {
  1. type_ : EntitySubType.t option;
    (*

    The type of attribute.

    *)
  2. score : Float_.t option;
    (*

    The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.

    *)
  3. relationshipScore : Float_.t option;
    (*

    The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this entity.

    *)
  4. relationshipType : RelationshipType.t option;
    (*

    The type of relationship between the entity and attribute. Type for the relationship is OVERLAP, indicating that the entity occurred at the same time as the Date_Expression.

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

    The numeric identifier for this attribute. This is a monotonically increasing id unique within this response rather than a global unique identifier.

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

    The 0-based character offset in the input text that shows where the attribute begins. The offset returns the UTF-8 code point in the string.

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

    The 0-based character offset in the input text that shows where the attribute ends. The offset returns the UTF-8 code point in the string.

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

    The segment of input text extracted as this attribute.

    *)
  9. category : EntityType.t option;
    (*

    The category of attribute.

    *)
  10. traits : TraitList.t option;
    (*

    Contextual information for this attribute.

    *)
}
Sourceval make : ?type_:??? -> ?score:??? -> ?relationshipScore:??? -> ?relationshipType:??? -> ?id:??? -> ?beginOffset:??? -> ?endOffset:??? -> ?text:??? -> ?category:??? -> ?traits:??? -> 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 * [> `Enum of string | `Float of Float_.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