Document AI V1 API - Class Google::Cloud::DocumentAI::V1::Document::Page::DetectedLanguage (v0.10.0)

Reference documentation and code samples for the Document AI V1 API class Google::Cloud::DocumentAI::V1::Document::Page::DetectedLanguage.

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 https://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 https://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 https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.