Class: Google::Cloud::Language::V1beta2::AnnotateTextRequest::Features
- Inherits:
-
Object
- Object
- Google::Cloud::Language::V1beta2::AnnotateTextRequest::Features
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/language/v1beta2/language_service.rb
Overview
All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input. Next ID: 12
Instance Attribute Summary collapse
-
#classification_model_options ⇒ ::Google::Cloud::Language::V1beta2::ClassificationModelOptions
The model options to use for classification.
-
#classify_text ⇒ ::Boolean
Classify the full document into categories.
-
#extract_document_sentiment ⇒ ::Boolean
Extract document-level sentiment.
-
#extract_entities ⇒ ::Boolean
Extract entities.
-
#extract_entity_sentiment ⇒ ::Boolean
Extract entities and their associated sentiment.
-
#extract_syntax ⇒ ::Boolean
Extract syntax information.
-
#moderate_text ⇒ ::Boolean
Moderate the document for harmful and sensitive categories.
Instance Attribute Details
#classification_model_options ⇒ ::Google::Cloud::Language::V1beta2::ClassificationModelOptions
Returns The model options to use for classification. Defaults to v1 options
if not specified. Only used if classify_text
is set to true.
1163 1164 1165 1166 |
# File 'proto_docs/google/cloud/language/v1beta2/language_service.rb', line 1163 class Features include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#classify_text ⇒ ::Boolean
Returns Classify the full document into categories. If this is true, the API will use the default model which classifies into a predefined taxonomy.
1163 1164 1165 1166 |
# File 'proto_docs/google/cloud/language/v1beta2/language_service.rb', line 1163 class Features include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#extract_document_sentiment ⇒ ::Boolean
Returns Extract document-level sentiment.
1163 1164 1165 1166 |
# File 'proto_docs/google/cloud/language/v1beta2/language_service.rb', line 1163 class Features include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#extract_entities ⇒ ::Boolean
Returns Extract entities.
1163 1164 1165 1166 |
# File 'proto_docs/google/cloud/language/v1beta2/language_service.rb', line 1163 class Features include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#extract_entity_sentiment ⇒ ::Boolean
Returns Extract entities and their associated sentiment.
1163 1164 1165 1166 |
# File 'proto_docs/google/cloud/language/v1beta2/language_service.rb', line 1163 class Features include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#extract_syntax ⇒ ::Boolean
Returns Extract syntax information.
1163 1164 1165 1166 |
# File 'proto_docs/google/cloud/language/v1beta2/language_service.rb', line 1163 class Features include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#moderate_text ⇒ ::Boolean
Returns Moderate the document for harmful and sensitive categories.
1163 1164 1165 1166 |
# File 'proto_docs/google/cloud/language/v1beta2/language_service.rb', line 1163 class Features include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |