Class: Google::Cloud::Language::V1beta2::AnalyzeSentimentResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb

Overview

The sentiment analysis response message.

Instance Attribute Summary collapse

Instance Attribute Details

#document_sentimentGoogle::Cloud::Language::V1beta2::Sentiment

Returns The overall sentiment of the input document.

Returns:



796
# File 'lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb', line 796

class AnalyzeSentimentResponse; end

#languageString

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.

Returns:

  • (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.



796
# File 'lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb', line 796

class AnalyzeSentimentResponse; end

#sentencesArray<Google::Cloud::Language::V1beta2::Sentence>

Returns The sentiment for all the sentences in the document.

Returns:



796
# File 'lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb', line 796

class AnalyzeSentimentResponse; end