Class: Google::Cloud::Translate::Detection::Result
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Cloud::Translate::Detection::Result
 
 
- Defined in:
 - lib/google/cloud/translate/detection.rb
 
Overview
Result
Represents an individual result in a Google::Cloud::Translate::Detection result.
Instance Attribute Summary collapse
- 
  
    
      #confidence  ⇒ Float 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The confidence that the language detection result is correct.
 - 
  
    
      #language  ⇒ String 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
The language detected.
 
Instance Attribute Details
#confidence ⇒ Float (readonly)
The confidence that the language detection result is correct. The closer this value is to 1, the higher the confidence in language detection.
      112 113 114  | 
    
      # File 'lib/google/cloud/translate/detection.rb', line 112 def confidence @confidence end  | 
  
#language ⇒ String (readonly)
The language detected. This is an ISO 639-1 language code.
      120 121 122  | 
    
      # File 'lib/google/cloud/translate/detection.rb', line 120 def language @language end  |