class Google::Apis::LanguageV1::Features
All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input.
Attributes
Classify the full document into categories. Corresponds to the JSON property `classifyText` @return [Boolean]
Classify the full document into 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_v1/classes.rb, line 605 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/language_v1/classes.rb, line 610 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