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 salience and mentions, with entities.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.CloudNaturalLanguage.v1beta1.Data
Assembly: Google.Apis.CloudNaturalLanguage.v1beta1.dll
Syntax
public class Entity : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.Collections.Generic.IList<EntityMention> |
Metadata
Metadata associated with the entity. Currently, Wikipedia URLs and Knowledge Graph MIDs are provided, if available. The associated keys are "wikipedia_url" and "mid", respectively.
Declaration
[JsonProperty("metadata")]
public virtual IDictionary<string, string> Metadata { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.String> |
Name
The representative name for the entity.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Salience
The salience score associated with the entity in the [0, 1.0] range. The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient.
Declaration
[JsonProperty("salience")]
public virtual float? Salience { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Single> |
Type
The entity type.
Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String |