Class: Google::Apis::LanguageV1beta1::Features
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::LanguageV1beta1::Features
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/language_v1beta1/classes.rb,
 generated/google/apis/language_v1beta1/representations.rb,
 generated/google/apis/language_v1beta1/representations.rb
Overview
All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input.
Instance Attribute Summary collapse
- 
  
    
      #extract_document_sentiment  ⇒ Boolean 
    
    
      (also: #extract_document_sentiment?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Extract document-level sentiment. 
- 
  
    
      #extract_entities  ⇒ Boolean 
    
    
      (also: #extract_entities?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Extract entities. 
- 
  
    
      #extract_syntax  ⇒ Boolean 
    
    
      (also: #extract_syntax?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Extract syntax information. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Features 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Features. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Features
Returns a new instance of Features
| 462 463 464 | # File 'generated/google/apis/language_v1beta1/classes.rb', line 462 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#extract_document_sentiment ⇒ Boolean Also known as: extract_document_sentiment?
Extract document-level sentiment.
Corresponds to the JSON property extractDocumentSentiment
| 447 448 449 | # File 'generated/google/apis/language_v1beta1/classes.rb', line 447 def extract_document_sentiment @extract_document_sentiment end | 
#extract_entities ⇒ Boolean Also known as: extract_entities?
Extract entities.
Corresponds to the JSON property extractEntities
| 453 454 455 | # File 'generated/google/apis/language_v1beta1/classes.rb', line 453 def extract_entities @extract_entities end | 
#extract_syntax ⇒ Boolean Also known as: extract_syntax?
Extract syntax information.
Corresponds to the JSON property extractSyntax
| 459 460 461 | # File 'generated/google/apis/language_v1beta1/classes.rb', line 459 def extract_syntax @extract_syntax end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 467 468 469 470 471 | # File 'generated/google/apis/language_v1beta1/classes.rb', line 467 def update!(**args) @extract_document_sentiment = args[:extract_document_sentiment] if args.key?(:extract_document_sentiment) @extract_entities = args[:extract_entities] if args.key?(:extract_entities) @extract_syntax = args[:extract_syntax] if args.key?(:extract_syntax) end |