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
Required.
-
#encoding_type ⇒ ::Google::Cloud::Language::V1::EncodingType
The encoding type used by the API to calculate offsets.
-
#features ⇒ ::Google::Cloud::Language::V1::AnnotateTextRequest::Features
Required.
Instance Attribute Details
#document ⇒ ::Google::Cloud::Language::V1::Document
Returns Required. Input document.
1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 |
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 1111 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. # @!attribute [rw] moderate_text # @return [::Boolean] # Moderate the document for harmful and sensitive categories. # @!attribute [rw] classification_model_options # @return [::Google::Cloud::Language::V1::ClassificationModelOptions] # The model options to use for classification. Defaults to v1 options # if not specified. Only used if `classify_text` is set to true. 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.
1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 |
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 1111 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. # @!attribute [rw] moderate_text # @return [::Boolean] # Moderate the document for harmful and sensitive categories. # @!attribute [rw] classification_model_options # @return [::Google::Cloud::Language::V1::ClassificationModelOptions] # The model options to use for classification. Defaults to v1 options # if not specified. Only used if `classify_text` is set to true. class Features include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#features ⇒ ::Google::Cloud::Language::V1::AnnotateTextRequest::Features
Returns Required. The enabled features.
1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 |
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 1111 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. # @!attribute [rw] moderate_text # @return [::Boolean] # Moderate the document for harmful and sensitive categories. # @!attribute [rw] classification_model_options # @return [::Google::Cloud::Language::V1::ClassificationModelOptions] # The model options to use for classification. Defaults to v1 options # if not specified. Only used if `classify_text` is set to true. class Features include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |