Class: Google::Cloud::Language::V1beta2::AnalyzeSentimentRequest

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

Overview

The sentiment analysis request message.

Instance Attribute Summary collapse

Instance Attribute Details

#documentGoogle::Cloud::Language::V1beta2::Document

Returns Input document. Currently, +analyzeSentiment+ only supports English text (Document#language="EN").

Returns:



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

class AnalyzeSentimentRequest; end

#encoding_typeGoogle::Cloud::Language::V1beta2::EncodingType

Returns The encoding type used by the API to calculate sentence offsets for the sentence sentiment.

Returns:



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

class AnalyzeSentimentRequest; end