TextAnnotation_DetectedLanguage
class TextAnnotation_DetectedLanguage extends Message
Detected language for a structural component.
Protobuf type Google\Cloud\Vision\V1\TextAnnotation\DetectedLanguage
Methods
No description
The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
Confidence of detected language. Range [0, 1].
Confidence of detected language. Range [0, 1].
Details
at line 33
__construct()
at line 46
string
getLanguageCode()
The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
Generated from protobuf field string language_code = 1;
at line 59
setLanguageCode(string $var)
The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
Generated from protobuf field string language_code = 1;
at line 71
float
getConfidence()
Confidence of detected language. Range [0, 1].
Generated from protobuf field float confidence = 2;
at line 82
setConfidence(float $var)
Confidence of detected language. Range [0, 1].
Generated from protobuf field float confidence = 2;