Entity class

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.

Constructors

Entity({List<EntityMention>? mentions, Map<String, String>? metadata, String? name, Sentiment? sentiment, String? type})
Entity.fromJson(Map json_)

Properties

hashCode int
The hash code for this object.
no setterinherited
mentions List<EntityMention>?
The mentions of this entity in the input document.
getter/setter pair
metadata Map<String, String>?
Metadata associated with the entity.
getter/setter pair
name String?
The representative name for the entity.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sentiment 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.
getter/setter pair
type String?
The entity type. Possible string values are:
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited