Class: Google::Cloud::Language::V2::Sentence

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/language/v2/language_service.rb

Overview

Represents a sentence in the input document.

Instance Attribute Summary collapse

Instance Attribute Details

#sentiment::Google::Cloud::Language::V2::Sentiment

Returns For calls to [AnalyzeSentiment][] or if AnnotateTextRequest.Features.extract_document_sentiment is set to true, this field will contain the sentiment for the sentence.

Returns:



75
76
77
78
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 75

class Sentence
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#text::Google::Cloud::Language::V2::TextSpan

Returns The sentence text.

Returns:



75
76
77
78
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 75

class Sentence
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end