Class: Google::Cloud::Language::V1::AnalyzeSentimentRequest

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

Overview

The sentiment analysis request message.

Instance Attribute Summary collapse

Instance Attribute Details

#documentGoogle::Cloud::Language::V1::Document

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

Returns:



776
# File 'lib/google/cloud/language/v1/doc/google/cloud/language/v1/language_service.rb', line 776

class AnalyzeSentimentRequest; end

#encoding_typeGoogle::Cloud::Language::V1::EncodingType

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

Returns:



776
# File 'lib/google/cloud/language/v1/doc/google/cloud/language/v1/language_service.rb', line 776

class AnalyzeSentimentRequest; end