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

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/common.rb

Overview

Output only. Spell check result.

Instance Attribute Summary collapse

Instance Attribute Details

#correctedtrue, false

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

Returns:

  • (true, false)

    Indicates if the query was corrected by the spell checker.



261
# File 'lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/common.rb', line 261

class SpellingCorrection; end

#corrected_htmlString

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



261
# File 'lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/common.rb', line 261

class SpellingCorrection; end

#corrected_textString

Returns Correction output consisting of the corrected keyword string.

Returns:

  • (String)

    Correction output consisting of the corrected keyword string.



261
# File 'lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/common.rb', line 261

class SpellingCorrection; end