Class: Google::Apis::LanguageV1beta2::ClassificationCategory
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::LanguageV1beta2::ClassificationCategory
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/language_v1beta2/classes.rb,
generated/google/apis/language_v1beta2/representations.rb,
generated/google/apis/language_v1beta2/representations.rb 
Overview
Represents a category returned from the text classifier.
Instance Attribute Summary collapse
- 
  
    
      #confidence  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The classifier's confidence of the category.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The name of the category representing the document, from the predefined taxonomy.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ClassificationCategory 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ClassificationCategory.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ClassificationCategory
Returns a new instance of ClassificationCategory
      361 362 363  | 
    
      # File 'generated/google/apis/language_v1beta2/classes.rb', line 361 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#confidence ⇒ Float
The classifier's confidence of the category. Number represents how certain
the classifier is that this category represents the given text.
Corresponds to the JSON property confidence
      353 354 355  | 
    
      # File 'generated/google/apis/language_v1beta2/classes.rb', line 353 def confidence @confidence end  | 
  
#name ⇒ String
The name of the category representing the document, from the predefined
taxonomy.
Corresponds to the JSON property name
      359 360 361  | 
    
      # File 'generated/google/apis/language_v1beta2/classes.rb', line 359 def name @name end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      366 367 368 369  | 
    
      # File 'generated/google/apis/language_v1beta2/classes.rb', line 366 def update!(**args) @confidence = args[:confidence] if args.key?(:confidence) @name = args[:name] if args.key?(:name) end  |