Skip to main content
QUICK REVIEW

[Paper Review] A Bayesian hybrid method for context-sensitive spelling correction

Andrew R. Golding|ArXiv.org|Jun 3, 1996
Natural Language Processing TechniquesComputer Science3 references66 citations
TL;DR

This paper proposes a Bayesian hybrid method for context-sensitive spelling correction that integrates evidence from context words and collocations using Bayesian classification, outperforming both individual components and decision list hybrids. The method achieves higher accuracy by aggregating all available evidence rather than relying on the single strongest signal, demonstrating superior performance on ambiguous homophones and near-homophones in real-world text.

ABSTRACT

Two classes of methods have been shown to be useful for resolving lexical ambiguity. The first relies on the presence of particular words within some distance of the ambiguous target word; the second uses the pattern of words and part-of-speech tags around the target word. These methods have complementary coverage: the former captures the lexical ``atmosphere'' (discourse topic, tense, etc.), while the latter captures local syntax. Yarowsky has exploited this complementarity by combining the two methods using decision lists. The idea is to pool the evidence provided by the component methods, and to then solve a target problem by applying the single strongest piece of evidence, whatever type it happens to be. This paper takes Yarowsky's work as a starting point, applying decision lists to the problem of context-sensitive spelling correction. Decision lists are found, by and large, to outperform either component method. However, it is found that further improvements can be obtained by taking into account not just the single strongest piece of evidence, but ALL the available evidence. A new hybrid method, based on Bayesian classifiers, is presented for doing this, and its performance improvements are demonstrated.

Motivation & Objective

  • To address context-sensitive spelling errors that result in valid lexicon words, such as 'desert' vs. 'dessert', which standard spell checkers miss.
  • To improve upon existing hybrid methods that rely on decision lists by incorporating all available evidence rather than just the strongest piece.
  • To develop a robust, evidence-aggregating approach for lexical disambiguation in spelling correction using Bayesian classification.
  • To evaluate the method against alternative approaches, including part-of-speech trigram models, to assess its relative strengths and limitations.

Proposed method

  • The method models spelling correction as a lexical disambiguation task using confusion sets, where ambiguous words like 'desert' and 'dessert' are grouped together.
  • It extracts two types of evidence: (1) presence of specific context words within a window around the target word, and (2) local collocations of words and part-of-speech tags.
  • Evidence from both components is combined using a Bayesian classifier that computes the posterior probability of each word in the confusion set given all observed evidence.
  • The Bayesian model integrates both types of evidence by computing P(word | context_words, collocations), using prior probabilities and likelihoods derived from training data.
  • The system uses a simplified assumption that false positives and false negatives are equally costly, though it notes confidence thresholds could be added for production use.
  • Performance is evaluated using a test set of 17 confusion sets from the Random House Unabridged Dictionary, with accuracy measured as prediction correctness.

Experimental results

Research questions

  • RQ1Can combining context words and collocations via Bayesian classification improve spelling correction accuracy beyond decision list hybrids?
  • RQ2Does aggregating all available evidence—rather than selecting only the strongest piece—lead to more robust and accurate disambiguation?
  • RQ3How does the Bayesian hybrid method compare to a state-of-the-art part-of-speech trigram model in handling homophonic and near-homophonic spelling errors?
  • RQ4In what scenarios does the Bayesian method outperform or underperform relative to trigram models, and why?

Key findings

  • The Bayesian hybrid method significantly outperforms both individual components (context words and collocations) and the decision list hybrid, achieving higher average accuracy across confusion sets.
  • For the confusion set {between, among}, the Bayesian method achieved 76.5% accuracy, a substantial improvement over the baseline (50.0%) and decision list (65.0%) approaches.
  • The method demonstrated consistent improvement on homophones and near-homophones, such as 'there/their/they're', where it achieved 75.0% accuracy compared to 60.0% for the decision list.
  • The Bayesian method outperformed the trigram model on homophones with identical parts of speech, such as 'between/among', where trigrams scored only 50.0% due to inability to distinguish based on POS.
  • The trigram model outperformed the Bayesian method on sets with different parts of speech, such as 'there/their/they're', due to its ability to analyze full sentence POS sequences.
  • The results suggest a complementary relationship between the two methods, with a hybrid pipeline—using trigrams first when parts of speech differ, and the Bayesian method when they are the same—being a promising direction for future work.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.