Class: Google::Cloud::Talent::V4beta1::SpellingCorrection

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/talent/v4beta1/common.rb

Overview

Spell check result.

Instance Attribute Summary collapse

Instance Attribute Details

#corrected::Boolean

Returns Indicates if the query was corrected by the spell checker.

Returns:

  • (::Boolean)

    Indicates if the query was corrected by the spell checker.



276
277
278
279
# File 'proto_docs/google/cloud/talent/v4beta1/common.rb', line 276

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

#corrected_html::String

Returns Corrected output with html tags to highlight the corrected words. Corrected words are called out with the "..." html tags.

For example, the user input query is "software enginear", where the second word, "enginear," is incorrect. It should be "engineer". When spelling correction is enabled, this value is "software engineer".

Returns:

  • (::String)

    Corrected output with html tags to highlight the corrected words. Corrected words are called out with the "..." html tags.

    For example, the user input query is "software enginear", where the second word, "enginear," is incorrect. It should be "engineer". When spelling correction is enabled, this value is "software engineer".



276
277
278
279
# File 'proto_docs/google/cloud/talent/v4beta1/common.rb', line 276

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

#corrected_text::String

Returns Correction output consisting of the corrected keyword string.

Returns:

  • (::String)

    Correction output consisting of the corrected keyword string.



276
277
278
279
# File 'proto_docs/google/cloud/talent/v4beta1/common.rb', line 276

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