Natural Language V1 API - Class Google::Cloud::Language::V1::AnnotateTextResponse (v1.0.0)

Reference documentation and code samples for the Natural Language V1 API class Google::Cloud::Language::V1::AnnotateTextResponse.

The text annotations response message.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#categories

def categories() -> ::Array<::Google::Cloud::Language::V1::ClassificationCategory>
Returns

#categories=

def categories=(value) -> ::Array<::Google::Cloud::Language::V1::ClassificationCategory>
Parameter
Returns

#document_sentiment

def document_sentiment() -> ::Google::Cloud::Language::V1::Sentiment
Returns

#document_sentiment=

def document_sentiment=(value) -> ::Google::Cloud::Language::V1::Sentiment
Parameter
Returns

#entities

def entities() -> ::Array<::Google::Cloud::Language::V1::Entity>
Returns

#entities=

def entities=(value) -> ::Array<::Google::Cloud::Language::V1::Entity>
Parameter
Returns

#language

def language() -> ::String
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. See Document.language field for more details.

#language=

def language=(value) -> ::String
Parameter
  • value (::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. See Document.language field for more details.
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. See Document.language field for more details.

#moderation_categories

def moderation_categories() -> ::Array<::Google::Cloud::Language::V1::ClassificationCategory>
Returns

#moderation_categories=

def moderation_categories=(value) -> ::Array<::Google::Cloud::Language::V1::ClassificationCategory>
Parameter
Returns

#sentences

def sentences() -> ::Array<::Google::Cloud::Language::V1::Sentence>
Returns

#sentences=

def sentences=(value) -> ::Array<::Google::Cloud::Language::V1::Sentence>
Parameter
Returns

#tokens

def tokens() -> ::Array<::Google::Cloud::Language::V1::Token>
Returns

#tokens=

def tokens=(value) -> ::Array<::Google::Cloud::Language::V1::Token>
Parameter
Returns