google_api_language v0.12.1 GoogleApi.Language.V1.Model.Token View Source

Represents the smallest syntactic building block of the text.

Attributes

  • dependencyEdge (type: GoogleApi.Language.V1.Model.DependencyEdge.t, default: nil) - Dependency tree parse for this token.
  • lemma (type: String.t, default: nil) - Lemma of the token.
  • partOfSpeech (type: GoogleApi.Language.V1.Model.PartOfSpeech.t, default: nil) - Parts of speech tag for this token.
  • text (type: GoogleApi.Language.V1.Model.TextSpan.t, default: nil) - The token text.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Language.V1.Model.Token{
  dependencyEdge: GoogleApi.Language.V1.Model.DependencyEdge.t(),
  lemma: String.t(),
  partOfSpeech: GoogleApi.Language.V1.Model.PartOfSpeech.t(),
  text: GoogleApi.Language.V1.Model.TextSpan.t()
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.