Package | Description |
---|---|
com.google.api.services.language.v2.model |
Modifier and Type | Method and Description |
---|---|
Sentiment |
Sentiment.clone() |
Sentiment |
AnnotateTextResponse.getDocumentSentiment()
The overall sentiment for the document.
|
Sentiment |
AnalyzeSentimentResponse.getDocumentSentiment()
The overall sentiment of the input document.
|
Sentiment |
Entity.getSentiment()
For calls to AnalyzeEntitySentiment this field will contain the aggregate sentiment expressed
for this entity in the provided document.
|
Sentiment |
EntityMention.getSentiment()
For calls to AnalyzeEntitySentiment this field will contain the sentiment expressed for this
mention of the entity in the provided document.
|
Sentiment |
Sentence.getSentiment()
For calls to AnalyzeSentiment or if AnnotateTextRequest.Features.extract_document_sentiment is
set to true, this field will contain the sentiment for the sentence.
|
Sentiment |
Sentiment.set(String fieldName,
Object value) |
Sentiment |
Sentiment.setMagnitude(Float magnitude)
A non-negative number in the [0, +inf] range, which represents the absolute magnitude of
sentiment regardless of score (positive or negative).
|
Sentiment |
Sentiment.setScore(Float score)
Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
|
Modifier and Type | Method and Description |
---|---|
AnnotateTextResponse |
AnnotateTextResponse.setDocumentSentiment(Sentiment documentSentiment)
The overall sentiment for the document.
|
AnalyzeSentimentResponse |
AnalyzeSentimentResponse.setDocumentSentiment(Sentiment documentSentiment)
The overall sentiment of the input document.
|
Entity |
Entity.setSentiment(Sentiment sentiment)
For calls to AnalyzeEntitySentiment this field will contain the aggregate sentiment expressed
for this entity in the provided document.
|
EntityMention |
EntityMention.setSentiment(Sentiment sentiment)
For calls to AnalyzeEntitySentiment this field will contain the sentiment expressed for this
mention of the entity in the provided document.
|
Sentence |
Sentence.setSentiment(Sentiment sentiment)
For calls to AnalyzeSentiment or if AnnotateTextRequest.Features.extract_document_sentiment is
set to true, this field will contain the sentiment for the sentence.
|
Copyright © 2011–2025 Google. All rights reserved.