Class Entity
Represents a phrase in the text that is a known entity, such as a person, an organization, or location. The API associates information, such as probability and mentions, with entities.
Implements
Inherited Members
Namespace: Google.Apis.CloudNaturalLanguage.v2.Data
Assembly: Google.Apis.CloudNaturalLanguage.v2.dll
Syntax
public class Entity : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Mentions
The mentions of this entity in the input document. The API currently supports proper noun mentions.
Declaration
[JsonProperty("mentions")]
public virtual IList<EntityMention> Mentions { get; set; }
Property Value
Type | Description |
---|---|
IList<EntityMention> |
Metadata
Metadata associated with the entity. For the metadata associated with other entity types, see the Type table below.
Declaration
[JsonProperty("metadata")]
public virtual IDictionary<string, string> Metadata { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
Name
The representative name for the entity.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Sentiment
For calls to AnalyzeEntitySentiment or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the aggregate sentiment expressed for this entity in the provided document.
Declaration
[JsonProperty("sentiment")]
public virtual Sentiment Sentiment { get; set; }
Property Value
Type | Description |
---|---|
Sentiment |
Type
The entity type.
Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
Type | Description |
---|---|
string |