GoogleApi.Language.V2.Model.EntityMention (google_api_language v0.16.3)
View SourceRepresents a mention for an entity in the text. Currently, proper noun mentions are supported.
Attributes
-
probability
(type:number()
, default:nil
) - Probability score associated with the entity. The score shows the probability of the entity mention being the entity type. The score is in (0, 1] range. -
sentiment
(type:GoogleApi.Language.V2.Model.Sentiment.t
, default:nil
) - For calls to AnalyzeEntitySentiment this field will contain the sentiment expressed for this mention of the entity in the provided document. -
text
(type:GoogleApi.Language.V2.Model.TextSpan.t
, default:nil
) - The mention text. -
type
(type:String.t
, default:nil
) - The type of the entity mention.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.Language.V2.Model.EntityMention{ probability: number() | nil, sentiment: GoogleApi.Language.V2.Model.Sentiment.t() | nil, text: GoogleApi.Language.V2.Model.TextSpan.t() | nil, type: String.t() | nil }