Class: Google::Cloud::Language::V1::AnalyzeSentimentResponse
- Inherits:
-
Object
- Object
- Google::Cloud::Language::V1::AnalyzeSentimentResponse
- Defined in:
- lib/google/cloud/language/v1/doc/google/cloud/language/v1/language_service.rb
Overview
The sentiment analysis response message.
Instance Attribute Summary collapse
-
#document_sentiment ⇒ Google::Cloud::Language::V1::Sentiment
The overall sentiment of the input document.
-
#language ⇒ String
The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language.
-
#sentences ⇒ Array<Google::Cloud::Language::V1::Sentence>
The sentiment for all the sentences in the document.
Instance Attribute Details
#document_sentiment ⇒ Google::Cloud::Language::V1::Sentiment
Returns The overall sentiment of the input document.
788 |
# File 'lib/google/cloud/language/v1/doc/google/cloud/language/v1/language_service.rb', line 788 class AnalyzeSentimentResponse; end |
#language ⇒ String
Returns The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See +Document.language+ field for more details.
788 |
# File 'lib/google/cloud/language/v1/doc/google/cloud/language/v1/language_service.rb', line 788 class AnalyzeSentimentResponse; end |
#sentences ⇒ Array<Google::Cloud::Language::V1::Sentence>
Returns The sentiment for all the sentences in the document.
788 |
# File 'lib/google/cloud/language/v1/doc/google/cloud/language/v1/language_service.rb', line 788 class AnalyzeSentimentResponse; end |