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.
113 114 115 |
# File 'lib/google/cloud/translate/detection.rb', line 113 def confidence @confidence end |
#language ⇒ String (readonly)
The language detected. This is an ISO 639-1 language code.
121 122 123 |
# File 'lib/google/cloud/translate/detection.rb', line 121 def language @language end |