GoogleApi.ContentWarehouse.V1.Model.NlpSaftRelation
Table of Contents ▼
Jump to a specific part of the page:
Description
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 List
This module has the following attributes (case-insensitive ascending order):
Attributes
-
identifier
(type:GoogleApi.ContentWarehouse.V1.Model.NlpSaftIdentifier
, default:nil
)
- External identifier for relation. -
info
(type:GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet
, default:nil
)
- Application-specific information about this relation. -
kind
(type:String.t
, default:nil
)
- -
mention
(type:list(GoogleApi.ContentWarehouse.V1.Model.NlpSaftRelationMention)
, 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.
Type
@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
}
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
}
Function
@spec decode(struct(), keyword()) :: struct()Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.NlpSaftRelation