Class: Google::Cloud::Language::V1::AnnotateTextRequest
- Inherits:
-
Object
- Object
- Google::Cloud::Language::V1::AnnotateTextRequest
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/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.
1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 |
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 1032 class AnnotateTextRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # 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 [::Boolean] # Extract syntax information. # @!attribute [rw] extract_entities # @return [::Boolean] # Extract entities. # @!attribute [rw] extract_document_sentiment # @return [::Boolean] # Extract document-level sentiment. # @!attribute [rw] extract_entity_sentiment # @return [::Boolean] # Extract entities and their associated sentiment. # @!attribute [rw] classify_text # @return [::Boolean] # Classify the full document into categories. class Features include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#encoding_type ⇒ ::Google::Cloud::Language::V1::EncodingType
Returns The encoding type used by the API to calculate offsets.
1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 |
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 1032 class AnnotateTextRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # 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 [::Boolean] # Extract syntax information. # @!attribute [rw] extract_entities # @return [::Boolean] # Extract entities. # @!attribute [rw] extract_document_sentiment # @return [::Boolean] # Extract document-level sentiment. # @!attribute [rw] extract_entity_sentiment # @return [::Boolean] # Extract entities and their associated sentiment. # @!attribute [rw] classify_text # @return [::Boolean] # Classify the full document into categories. class Features include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#features ⇒ ::Google::Cloud::Language::V1::AnnotateTextRequest::Features
Returns The enabled features.
1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 |
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 1032 class AnnotateTextRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # 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 [::Boolean] # Extract syntax information. # @!attribute [rw] extract_entities # @return [::Boolean] # Extract entities. # @!attribute [rw] extract_document_sentiment # @return [::Boolean] # Extract document-level sentiment. # @!attribute [rw] extract_entity_sentiment # @return [::Boolean] # Extract entities and their associated sentiment. # @!attribute [rw] classify_text # @return [::Boolean] # Classify the full document into categories. class Features include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |