Class Google::Cloud::DocumentAI::V1beta3::Document::Page::DetectedLanguage (v0.10.0)

Detected language for a structural component.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#confidence

def confidence() -> ::Float
Returns
  • (::Float) — Confidence of detected language. Range [0, 1].

#confidence=

def confidence=(value) -> ::Float
Parameter
  • value (::Float) — Confidence of detected language. Range [0, 1].
Returns
  • (::Float) — Confidence of detected language. Range [0, 1].

#language_code

def language_code() -> ::String
Returns
  • (::String) — 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.

#language_code=

def language_code=(value) -> ::String
Parameter
  • value (::String) — 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
  • (::String) — 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.