Module Values.SyntaxTokenSource

Represents a work in the input text that was recognized and assigned a part of speech. There is one syntax token record for each word in the source text.

Sourcetype nonrec t = {
  1. tokenId : Integer.t option;
    (*

    A unique identifier for a token.

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

    The word that was recognized in the source text.

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

    The zero-based offset from the beginning of the source text to the first character in the word.

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

    The zero-based offset from the beginning of the source text to the last character in the word.

    *)
  5. partOfSpeech : PartOfSpeechTag.t option;
    (*

    Provides the part of speech label and the confidence level that Amazon Comprehend has that the part of speech was correctly identified. For more information, see Syntax in the Comprehend Developer Guide.

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