View Source GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftMentionAnnotation (google_api_content_warehouse v0.3.0)

SaftMentionAnnotation(s) are used to identify a sub-span of the input with some semantic relevance, for example PER (Person), LOC (Locations) or measure etc. Each SaftMentionAnnotation will have exactly one non-empty field.

Attributes

  • coreference (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftCoreference.t, default: nil) - Annotations for spans that are resolved coreference mentions.
  • entity (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftSpan.t, default: nil) - Annotations for spans like "san francisco giants".
  • measure (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftMeasure.t, default: nil) - Annotations for spans "53 pounds".
  • title (type: GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingSaftSpan.t, default: nil) - Annotations for spans like "the president of the United States".

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

Functions

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

Unwrap a decoded JSON object into its complex fields.