Struct google_language1::EntityMention[][src]

pub struct EntityMention {
    pub text: Option<TextSpan>,
    pub type_: Option<String>,
    pub sentiment: Option<Sentiment>,
}

Represents a mention for an entity in the text. Currently, proper noun mentions are supported.

This type is not used in any activity, and only used as part of another schema.

Fields

The mention text.

The type of the entity mention.

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.

Trait Implementations

impl Default for EntityMention
[src]

Returns the "default value" for a type. Read more

impl Clone for EntityMention
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for EntityMention
[src]

Formats the value using the given formatter. Read more

impl Part for EntityMention
[src]

Auto Trait Implementations