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_text[RW]

Classify the full document into categories. Corresponds to the JSON property `classifyText` @return [Boolean]

classify_text?[RW]

Classify the full document into categories. Corresponds to the JSON property `classifyText` @return [Boolean]

extract_document_sentiment[RW]

Extract document-level sentiment. Corresponds to the JSON property `extractDocumentSentiment` @return [Boolean]

extract_document_sentiment?[RW]

Extract document-level sentiment. Corresponds to the JSON property `extractDocumentSentiment` @return [Boolean]

extract_entities[RW]

Extract entities. Corresponds to the JSON property `extractEntities` @return [Boolean]

extract_entities?[RW]

Extract entities. Corresponds to the JSON property `extractEntities` @return [Boolean]

extract_entity_sentiment[RW]

Extract entities and their associated sentiment. Corresponds to the JSON property `extractEntitySentiment` @return [Boolean]

extract_entity_sentiment?[RW]

Extract entities and their associated sentiment. Corresponds to the JSON property `extractEntitySentiment` @return [Boolean]

extract_syntax[RW]

Extract syntax information. Corresponds to the JSON property `extractSyntax` @return [Boolean]

extract_syntax?[RW]

Extract syntax information. Corresponds to the JSON property `extractSyntax` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/language_v1/classes.rb, line 605
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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