View Source GoogleApi.ContentWarehouse.V1.Model.NlpSaftEntity (google_api_content_warehouse v0.4.0)
Named entities in the document.
Attributes
-
antecedent
(type:integer()
, default:nil
) - Antecedent for entity. This is used to make coreference chains before the mentions in the document are grouped by entity. -
entityType
(type:String.t
, default:nil
) - Entity type (e.g. PER, ORG, LOC). WARNING: This field is deprecated. go/saft-replace-deprecated-entity-type -
entityTypeProbability
(type:list(float())
, default:nil
) - Probability distribution over entity types. These values correspond to Document.entity_label values: doc.entity[e].entity_type_probability[n] is the probability that the correct label for doc.entity[e] is doc.entity_label[n]. These probabilities sum to 1.0 (with possible rounding error). WARNING: This field is deprecated. go/saft-replace-deprecated-entity-type -
gender
(type:String.t
, default:nil
) - Gender for entity. -
info
(type:GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t
, default:nil
) - Application-specific information about this entity. -
mention
(type:list(GoogleApi.ContentWarehouse.V1.Model.NlpSaftMention.t)
, default:nil
) - Mentions of the entity in the document. -
name
(type:String.t
, default:nil
) - Representative entity name. -
profile
(type:GoogleApi.ContentWarehouse.V1.Model.NlpSaftEntityProfile.t
, default:nil
) - Profile for entity. -
referent
(type:GoogleApi.ContentWarehouse.V1.Model.NlpSaftReferent.t
, default:nil
) - Referent information for discourse context entities that are not mentioned in the document. These can be merged with mentioned entities during analysis if they are deemed to be coreferent. Entities with referents should not have any mentions if they do not corefer with anything. For example, when adding context entities to an input document prior to SAFT analysis, those entities should have a referent and no mentions. -
representativeMention
(type:integer()
, default:nil
) - Representative mention, as an index into mention. -
salience
(type:float()
, default:nil
) - Score indicating the saliency (centrality) of this entity to the document. -
type
(type:list(GoogleApi.ContentWarehouse.V1.Model.NlpSaftEntityType.t)
, default:nil
) - Entity types of the entity. These can include SAFT types (/saft/location, /saft/art, /saft/other/living_thing, etc), collections types (/collection/tv_personalities, /collection/statistical_regions, etc), and more. This refers to the type of the entity itself: in "She is on TV", "She" refers to a specific actor, with type "/collection/tv_personalities". Cf. Mention.Type, which is the type of the referring mention.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.ContentWarehouse.V1.Model.NlpSaftEntity{ antecedent: integer() | nil, entityType: String.t() | nil, entityTypeProbability: [float()] | nil, gender: String.t() | nil, info: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil, mention: [GoogleApi.ContentWarehouse.V1.Model.NlpSaftMention.t()] | nil, name: String.t() | nil, profile: GoogleApi.ContentWarehouse.V1.Model.NlpSaftEntityProfile.t() | nil, referent: GoogleApi.ContentWarehouse.V1.Model.NlpSaftReferent.t() | nil, representativeMention: integer() | nil, salience: float() | nil, type: [GoogleApi.ContentWarehouse.V1.Model.NlpSaftEntityType.t()] | nil }
Functions
Unwrap a decoded JSON object into its complex fields.