View Source GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftSpan (google_api_content_warehouse v0.4.0)

The lowest common denominator of a SAFT annotation is simply the definition of some |category| for a sub-span of the |raw_text| of the query.

Attributes

  • category (type: String.t, default: nil) - Categories can be either syntactic (NNS for fine-grained-POS) or semantics ($Mass for measures).
  • rawText (type: String.t, default: nil) - The substring of the raw query spanned by this annotation.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftSpan{
  category: String.t() | nil,
  rawText: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.