Cloud Natural Language V2 API - Class Google::Cloud::Language::V2::Sentence (v0.5.0)

Reference documentation and code samples for the Cloud Natural Language V2 API class Google::Cloud::Language::V2::Sentence.

Represents a sentence in the input document.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#sentiment

def sentiment() -> ::Google::Cloud::Language::V2::Sentiment
Returns

#sentiment=

def sentiment=(value) -> ::Google::Cloud::Language::V2::Sentiment
Parameter
Returns

#text

def text() -> ::Google::Cloud::Language::V2::TextSpan
Returns

#text=

def text=(value) -> ::Google::Cloud::Language::V2::TextSpan
Parameter
Returns