GoogleApi.Language.V1.Model.Token (google_api_language v0.16.3)

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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

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

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.