EntityMention class

Represents a mention for an entity in the text.

Currently, proper noun mentions are supported.

Constructors

EntityMention({Sentiment? sentiment, TextSpan? text, String? type})
EntityMention.fromJson(Map json_)

Properties

hashCode int
The hash code for this object.
no setterinherited
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 sentiment expressed for this mention of the entity in the provided document.
getter/setter pair
text TextSpan?
The mention text.
getter/setter pair
type String?
The type of the entity mention. 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