Class: Google::Cloud::Language::V2::AnalyzeSentimentResponse
- Inherits:
-
Object
- Object
- Google::Cloud::Language::V2::AnalyzeSentimentResponse
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/language/v2/language_service.rb
Overview
The sentiment analysis response message.
Instance Attribute Summary collapse
-
#document_sentiment ⇒ ::Google::Cloud::Language::V2::Sentiment
The overall sentiment of the input document.
-
#language_code ⇒ ::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.
-
#language_supported ⇒ ::Boolean
Whether the language is officially supported.
-
#sentences ⇒ ::Array<::Google::Cloud::Language::V2::Sentence>
The sentiment for all the sentences in the document.
Instance Attribute Details
#document_sentiment ⇒ ::Google::Cloud::Language::V2::Sentiment
Returns The overall sentiment of the input document.
312 313 314 315 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 312 class AnalyzeSentimentResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#language_code ⇒ ::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.
312 313 314 315 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 312 class AnalyzeSentimentResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#language_supported ⇒ ::Boolean
Returns Whether the language is officially supported. The API may still return a response when the language is not supported, but it is on a best effort basis.
312 313 314 315 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 312 class AnalyzeSentimentResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#sentences ⇒ ::Array<::Google::Cloud::Language::V2::Sentence>
Returns The sentiment for all the sentences in the document.
312 313 314 315 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 312 class AnalyzeSentimentResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |