Class: Google::Cloud::Translate::V2::Detection::Result
- Inherits:
-
Object
- Object
- Google::Cloud::Translate::V2::Detection::Result
- Defined in:
- lib/google/cloud/translate/v2/detection.rb
Overview
Result
Represents an individual result in a Google::Cloud::Translate::V2::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.
105 106 107 |
# File 'lib/google/cloud/translate/v2/detection.rb', line 105 def confidence @confidence end |
#language ⇒ String (readonly)
The language detected. This is an ISO 639-1 language code.
112 113 114 |
# File 'lib/google/cloud/translate/v2/detection.rb', line 112 def language @language end |