Class: Google::Cloud::Vision::V1p3beta1::TextAnnotation::DetectedLanguage

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/vision/v1p3beta1/text_annotation.rb

Overview

Detected language for a structural component.

Instance Attribute Summary collapse

Instance Attribute Details

#confidence::Float

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

Returns:

  • (::Float)

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



51
52
53
54
# File 'proto_docs/google/cloud/vision/v1p3beta1/text_annotation.rb', line 51

class DetectedLanguage
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#language_code::String

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:



51
52
53
54
# File 'proto_docs/google/cloud/vision/v1p3beta1/text_annotation.rb', line 51

class DetectedLanguage
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end