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

An entity, which may occur multiple times in the text.

Attributes

  • gender (type: String.t, default: nil) - Entity gender. Default label set is 'masculine', 'feminine', or 'neuter'. (Perhaps in the future we can split 'neuter' into 'inanimate', 'unknown', and 'non-binary'.)
  • mid (type: String.t, default: nil) - Machine identifier, such as those from the Freebase database (or similar entity database).
  • name (type: String.t, default: nil) - Free-form entity name.
  • type (type: list(String.t), default: nil) - Entity type, typically something like person/location/organization. The schema for types is not specified. If this entity has a MID, use the mid field instead or in conjunction with the type.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.NlxDataSchemaEntity{
  gender: String.t() | nil,
  mid: String.t() | nil,
  name: String.t() | nil,
  type: [String.t()] | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.