Struct gapi_grpc::google::cloud::automl::v1::TextSentimentAnnotation[][src]

pub struct TextSentimentAnnotation {
    pub sentiment: i32,
}

Contains annotation details specific to text sentiment.

Fields

sentiment: i32

Output only. The sentiment with the semantic, as given to the [AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] when populating the dataset from which the model used for the prediction had been trained. The sentiment values are between 0 and Dataset.text_sentiment_dataset_metadata.sentiment_max (inclusive), with higher value meaning more positive sentiment. They are completely relative, i.e. 0 means least positive sentiment and sentiment_max means the most positive from the sentiments present in the train data. Therefore e.g. if train data had only negative sentiment, then sentiment_max, would be still negative (although least negative). The sentiment shouldn’t be confused with “score” or “magnitude” from the previous Natural Language Sentiment Analysis API.

Trait Implementations

impl Clone for TextSentimentAnnotation[src]

impl Debug for TextSentimentAnnotation[src]

impl Default for TextSentimentAnnotation[src]

impl Message for TextSentimentAnnotation[src]

impl PartialEq<TextSentimentAnnotation> for TextSentimentAnnotation[src]

impl StructuralPartialEq for TextSentimentAnnotation[src]

Auto Trait Implementations

impl RefUnwindSafe for TextSentimentAnnotation

impl Send for TextSentimentAnnotation

impl Sync for TextSentimentAnnotation

impl Unpin for TextSentimentAnnotation

impl UnwindSafe for TextSentimentAnnotation

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]