Class: Google::Cloud::Vision::V1::TextAnnotation::DetectedLanguage

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb

Overview

Detected language for a structural component.

Instance Attribute Summary collapse

Instance Attribute Details

#confidenceFloat

Returns Confidence of detected language. Range [0, 1].

Returns:

  • (Float)

    Confidence of detected language. Range [0, 1].



42
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb', line 42

class DetectedLanguage; end

#language_codeString

Returns 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.

Returns:



42
# File 'lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb', line 42

class DetectedLanguage; end