Class: Google::Cloud::Language::V1::AnnotateTextRequest
- Inherits:
-
Object
- Object
- Google::Cloud::Language::V1::AnnotateTextRequest
- Defined in:
- lib/google/cloud/language/v1/doc/google/cloud/language/v1/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
-
#document ⇒ Google::Cloud::Language::V1::Document
Input document.
-
#encoding_type ⇒ Google::Cloud::Language::V1::EncodingType
The encoding type used by the API to calculate offsets.
-
#features ⇒ Google::Cloud::Language::V1::AnnotateTextRequest::Features
The enabled features.
Instance Attribute Details
#document ⇒ Google::Cloud::Language::V1::Document
Returns Input document.
961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 |
# File 'lib/google/cloud/language/v1/doc/google/cloud/language/v1/language_service.rb', line 961 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_type ⇒ Google::Cloud::Language::V1::EncodingType
Returns The encoding type used by the API to calculate offsets.
961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 |
# File 'lib/google/cloud/language/v1/doc/google/cloud/language/v1/language_service.rb', line 961 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 |
#features ⇒ Google::Cloud::Language::V1::AnnotateTextRequest::Features
Returns The enabled features.
961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 |
# File 'lib/google/cloud/language/v1/doc/google/cloud/language/v1/language_service.rb', line 961 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 |