Class Entity (1.3.2)

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.

The entity type.

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.

For calls to [AnalyzeEntitySentiment][] or if [AnnotateTextReq uest.Features.extract_entity_sentiment][google.cloud.languag e.v1beta2.AnnotateTextRequest.Features.extract_entity_sentim ent] is set to true, this field will contain the aggregate sentiment expressed for this entity in the provided document.

Classes

MetadataEntry

API documentation for language_v1beta2.types.Entity.MetadataEntry class.