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

A mention of an entity. A single entity might be mentioned multiple times.

Attributes

  • bytes (type: GoogleApi.ContentWarehouse.V1.Model.MultiscalePointerSpan.t, default: nil) - The bytes in this mention.
  • document (type: GoogleApi.ContentWarehouse.V1.Model.MultiscalePointerIndex.t, default: nil) - The document that contains this mention.
  • entity (type: GoogleApi.ContentWarehouse.V1.Model.MultiscalePointerIndex.t, default: nil) - The entity that this mention refers to.
  • kind (type: String.t, default: nil) - Mention kind, typically 'referential', 'attributive', or 'modifier'.
  • text (type: String.t, default: nil) - The mention text itself. Must contain valid UTF-8.
  • tokens (type: GoogleApi.ContentWarehouse.V1.Model.MultiscalePointerSpan.t, default: nil) - The token(s) in this mention. This may not be present, or have zero length if representing an implicit mention, as in the prodrop case.
  • type (type: String.t, default: nil) - Mention type, typically 'named' (for name mentions) or 'nominal'. More types include 'pronominal', 'conjoined' for conjoined mention construction, and 'non-referential' for non-referential pronoun mentions.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.NlxDataSchemaMention{
  bytes: GoogleApi.ContentWarehouse.V1.Model.MultiscalePointerSpan.t() | nil,
  document:
    GoogleApi.ContentWarehouse.V1.Model.MultiscalePointerIndex.t() | nil,
  entity: GoogleApi.ContentWarehouse.V1.Model.MultiscalePointerIndex.t() | nil,
  kind: String.t() | nil,
  text: String.t() | nil,
  tokens: GoogleApi.ContentWarehouse.V1.Model.MultiscalePointerSpan.t() | nil,
  type: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.