Class: Google::Cloud::Language::V1::AnnotateTextResponse

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

Overview

The text annotations response message.

Instance Attribute Summary collapse

Instance Attribute Details

#categoriesArray<Google::Cloud::Language::V1::ClassificationCategory>

Returns Categories identified in the input document.

Returns:



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

class AnnotateTextResponse; end

#document_sentimentGoogle::Cloud::Language::V1::Sentiment

Returns The overall sentiment for the document. Populated if the user enables AnnotateTextRequest::Features#extract_document_sentiment.

Returns:



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

class AnnotateTextResponse; end

#entitiesArray<Google::Cloud::Language::V1::Entity>

Returns Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest::Features#extract_entities.

Returns:



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

class AnnotateTextResponse; end

#languageString

Returns 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.



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

class AnnotateTextResponse; end

#sentencesArray<Google::Cloud::Language::V1::Sentence>

Returns Sentences in the input document. Populated if the user enables AnnotateTextRequest::Features#extract_syntax.

Returns:



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

class AnnotateTextResponse; end

#tokensArray<Google::Cloud::Language::V1::Token>

Returns Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest::Features#extract_syntax.

Returns:



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

class AnnotateTextResponse; end