Class: Google::Cloud::Language::V1beta2::AnnotateTextRequest

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

Overview

The request message for the text annotation API, which can perform multiple analysis types (sentiment, entities, and syntax) in one call.

Defined Under Namespace

Classes: Features

Instance Attribute Summary collapse

Instance Attribute Details

#documentGoogle::Cloud::Language::V1beta2::Document

Returns Input document.

Returns:



918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
# File 'lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb', line 918

class AnnotateTextRequest
  # All available features for sentiment, syntax, and semantic analysis.
  # Setting each one to true will enable that specific analysis for the input.
  # @!attribute [rw] extract_syntax
  #   @return [true, false]
  #     Extract syntax information.
  # @!attribute [rw] extract_entities
  #   @return [true, false]
  #     Extract entities.
  # @!attribute [rw] extract_document_sentiment
  #   @return [true, false]
  #     Extract document-level sentiment.
  # @!attribute [rw] extract_entity_sentiment
  #   @return [true, false]
  #     Extract entities and their associated sentiment.
  # @!attribute [rw] classify_text
  #   @return [true, false]
  #     Classify the full document into categories.
  class Features; end
end

#encoding_typeGoogle::Cloud::Language::V1beta2::EncodingType

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

Returns:



918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
# File 'lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb', line 918

class AnnotateTextRequest
  # All available features for sentiment, syntax, and semantic analysis.
  # Setting each one to true will enable that specific analysis for the input.
  # @!attribute [rw] extract_syntax
  #   @return [true, false]
  #     Extract syntax information.
  # @!attribute [rw] extract_entities
  #   @return [true, false]
  #     Extract entities.
  # @!attribute [rw] extract_document_sentiment
  #   @return [true, false]
  #     Extract document-level sentiment.
  # @!attribute [rw] extract_entity_sentiment
  #   @return [true, false]
  #     Extract entities and their associated sentiment.
  # @!attribute [rw] classify_text
  #   @return [true, false]
  #     Classify the full document into categories.
  class Features; end
end

#featuresGoogle::Cloud::Language::V1beta2::AnnotateTextRequest::Features

Returns The enabled features.



918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
# File 'lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb', line 918

class AnnotateTextRequest
  # All available features for sentiment, syntax, and semantic analysis.
  # Setting each one to true will enable that specific analysis for the input.
  # @!attribute [rw] extract_syntax
  #   @return [true, false]
  #     Extract syntax information.
  # @!attribute [rw] extract_entities
  #   @return [true, false]
  #     Extract entities.
  # @!attribute [rw] extract_document_sentiment
  #   @return [true, false]
  #     Extract document-level sentiment.
  # @!attribute [rw] extract_entity_sentiment
  #   @return [true, false]
  #     Extract entities and their associated sentiment.
  # @!attribute [rw] classify_text
  #   @return [true, false]
  #     Classify the full document into categories.
  class Features; end
end