class Google::Apis::LanguageV1beta2::Features
All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input. Next ID: 10
Attributes
Classify the full document into categories. If this is true, the API will use the default model which classifies into a [predefined taxonomy](cloud. google.com/natural-language/docs/categories). Corresponds to the JSON property `classifyText` @return [Boolean]
Classify the full document into categories. If this is true, the API will use the default model which classifies into a [predefined taxonomy](cloud. google.com/natural-language/docs/categories). Corresponds to the JSON property `classifyText` @return [Boolean]
Extract document-level sentiment. Corresponds to the JSON property `extractDocumentSentiment` @return [Boolean]
Extract document-level sentiment. Corresponds to the JSON property `extractDocumentSentiment` @return [Boolean]
Extract entities. Corresponds to the JSON property `extractEntities` @return [Boolean]
Extract entities. Corresponds to the JSON property `extractEntities` @return [Boolean]
Extract entities and their associated sentiment. Corresponds to the JSON property `extractEntitySentiment` @return [Boolean]
Extract entities and their associated sentiment. Corresponds to the JSON property `extractEntitySentiment` @return [Boolean]
Extract syntax information. Corresponds to the JSON property `extractSyntax` @return [Boolean]
Extract syntax information. Corresponds to the JSON property `extractSyntax` @return [Boolean]
Public Class Methods
# File lib/google/apis/language_v1beta2/classes.rb, line 626 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/language_v1beta2/classes.rb, line 631 def update!(**args) @classify_text = args[:classify_text] if args.key?(:classify_text) @extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment) @extract_entities = args[:extract_entities] if args.key?(:extract_entities) @extract_entity_sentiment = args[:extract_entity_sentiment] if args.key?(:extract_entity_sentiment) @extract_syntax = args[:extract_syntax] if args.key?(:extract_syntax) end