Reference documentation and code samples for the Cloud Natural Language V1 Client class EntityMention.
Represents a mention for an entity in the text. Currently, proper noun mentions are supported.
Generated from protobuf message google.cloud.language.v1.EntityMention
Namespace
Google \ Cloud \ Language \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ text
↳ type
int
The type of the entity mention.
↳ sentiment
Sentiment
For calls to AnalyzeEntitySentiment or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the sentiment expressed for this mention of the entity in the provided document.
getText
The mention text.
hasText
clearText
setText
The mention text.
$this
getType
The type of the entity mention.
int
setType
The type of the entity mention.
var
int
$this
getSentiment
For calls to AnalyzeEntitySentiment or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the sentiment expressed for this mention of the entity in the provided document.
hasSentiment
clearSentiment
setSentiment
For calls to AnalyzeEntitySentiment or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the sentiment expressed for this mention of the entity in the provided document.
$this