Struct sentiment::Analysis [] [src]

pub struct Analysis {
    pub score: f32,
    pub comparative: f32,
    pub positive: Sentiment,
    pub negative: Sentiment,
}

Struct for return the outcome of analysis

Fields

The sentiment score

The score compared with total tokens analysed

Positivity score

Negativity score