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

Relations between entities in the document. A relation is between two different entities in the document. A relation can have a number of mentions in the document. Next available id: 11

Attributes

  • identifier (type: GoogleApi.ContentWarehouse.V1.Model.NlpSaftIdentifier.t, default: nil) - External identifier for relation.
  • info (type: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t, default: nil) - Application-specific information about this relation.
  • kind (type: String.t, default: nil) -
  • mention (type: list(GoogleApi.ContentWarehouse.V1.Model.NlpSaftRelationMention.t), default: nil) - Mentions of the relation in the document.
  • score (type: number(), default: nil) - Relation score.
  • source (type: integer(), default: nil) - Source and target entity indices. These are indices into the entity array in the document. If this is an attribute relation the target is the index of a measure in the document.
  • target (type: integer(), default: nil) -
  • type (type: String.t, default: nil) - Relation type.
  • typeId (type: integer(), default: nil) - Relation type id.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.NlpSaftRelation{
  identifier: GoogleApi.ContentWarehouse.V1.Model.NlpSaftIdentifier.t() | nil,
  info: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil,
  kind: String.t() | nil,
  mention:
    [GoogleApi.ContentWarehouse.V1.Model.NlpSaftRelationMention.t()] | nil,
  score: number() | nil,
  source: integer() | nil,
  target: integer() | nil,
  type: String.t() | nil,
  typeId: integer() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.