Module Values.TargetedSentimentMentionSource

Information about one mention of an entity. The mention information includes the location of the mention in the text and the sentiment of the mention. For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.

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

    Model confidence that the entity is relevant. Value range is zero to one, where one is highest confidence.

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

    The confidence that all the entities mentioned in the group relate to the same entity.

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

    The text in the document that identifies the entity.

    *)
  4. type_ : TargetedSentimentEntityType.t option;
    (*

    The type of the entity. Amazon Comprehend supports a variety of entity types.

    *)
  5. mentionSentiment : MentionSentiment.t option;
    (*

    Contains the sentiment and sentiment score for the mention.

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

    The offset into the document text where the mention begins.

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

    The offset into the document text where the mention ends.

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