Word Sense Disambiguation (WSD)

Machine Learning
Introduced by
Navigli (survey, 2009)
Year
2009
Type
NLP semantic-disambiguation task

What does it do?

Word sense disambiguation (WSD) is the natural-language-processing task of choosing the intended meaning of a polysemous word from its surrounding context.

Navigli's (2009) survey describes it as an AI-complete problem and reviews supervised, unsupervised, and knowledge-based approaches. This page covers the knowledge-based pipeline, in which candidate senses are compared against dictionary-style definitions; supervised and unsupervised approaches are not described here. The method outputs the most likely sense label for each ambiguous word in context.

The intuition behind the method

Many everyday words carry more than one meaning — "bank" can be a riverside or a financial institution, and only the surrounding words tell us which. A reader resolves this automatically, but a machine sees the same string of characters either way. WSD makes that choice explicit: it looks at the words around an ambiguous term, compares them against the dictionary definitions of each candidate sense, and selects the sense whose meaning best fits the context.

History

Word sense disambiguation is a long-standing problem in computational linguistics. Navigli (2009) surveys the field, covering supervised, unsupervised, and knowledge-based approaches and the evaluation campaigns Senseval and SemEval.

When to use it

Choose WSD when your text contains words with several meanings and you need the intended sense of those words, either for a downstream task such as information retrieval, machine translation, or question answering, or for analysing how word senses are used in a corpus. Knowledge-based WSD requires a lexical resource that lists the senses of the target words, such as WordNet for English or an ontology for the target language, together with a defined context window. Do not use it for a language without a sense inventory, because the method cannot generate candidate senses without one. If most of your words have only one meaning, or you only need word identity, WSD adds processing without changing the result.

Limitations and considerations

  • Navigli (2009) characterises WSD as an AI-complete problem, so difficult cases will remain open to any method.
  • Knowledge-based WSD requires an available WordNet or target-language ontology; languages without a sense inventory cannot be disambiguated this way.
  • Accuracy depends on how well the defined context window captures the disambiguating evidence.
  • Fine-grained sense distinctions in a resource can be hard to separate even when the context is rich.
  • The method returns one sense label per target word with no confidence score, so an incorrect label is not flagged and accuracy has to be checked separately (see the FAQ on evaluation).
  • Gloss-overlap methods depend on the wording of the definitions: a sense whose gloss uses different vocabulary from the context can be missed even when it is the intended one.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Resolves polysemy, so downstream analysis works with the intended sense rather than the surface string.
  • Knowledge-based variants such as Lesk work from the glosses in a lexical resource and do not need a large labelled training set.
  • Because candidate senses come from a fixed inventory, each output is a label from that inventory, so results can be traced back to the resource's definitions.

Applications

  • Information retrieval, by matching the intended sense of a query term to the documents that use it (applications are discussed in Navigli 2009).
  • Machine translation, by selecting the correct sense of a word before translating it.
  • Question-answering systems that must interpret ambiguous terms in a question.
  • Analysis of how word senses are used across a text collection.

How it works

How it works

1

The text is scanned for polysemous words — terms that have more than one possible meaning in the knowledge resource. Each such word becomes a target for disambiguation, since unambiguous words need no further analysis.

2

A context window is defined around each target word — the neighbouring words and phrases that signal which meaning is intended. The size and shape of this window is a defined parameter of the method, because the surrounding evidence is what drives the decision.

3

Candidate senses for the target word are retrieved from a lexical knowledge resource such as WordNet or a target-language ontology. Each candidate carries a gloss or definition that describes that particular meaning.

4

The sense whose definition best overlaps with the context is chosen. Knowledge-based approaches such as the Lesk algorithm compare the words in the context window against each sense's gloss and select the best match, assigning a single sense label to the word in context.

Common pitfalls

  • Applying a resource built for one language to text in another. The sense inventory must match the corpus language.
  • Using a context window that is too narrow to carry the disambiguating signal, or so wide that it pulls in irrelevant words.
  • Running disambiguation on every token. Restrict targets to words that have more than one sense in the resource; otherwise the step adds noise without changing the output.

Frequently asked questions

What knowledge resource does WSD need?

Knowledge-based WSD relies on a lexical resource that lists the senses of words, such as WordNet for English or an equivalent ontology for the target language. The resource supplies the candidate senses and their glosses that the method compares against the context.

How does the context window matter?

The context window is the set of neighbouring words used to decide which sense applies. It is a defined parameter: too narrow and it misses the disambiguating signal, too wide and it adds irrelevant words. Choosing an appropriate window is central to the method.

What is the Lesk algorithm?

Lesk is a classic knowledge-based approach that compares the words in the context window against the dictionary gloss of each candidate sense and picks the sense with the greatest overlap. It works directly from the lexical resource without labelled training data.

Does WSD work for languages other than English?

Yes, provided a sense inventory or ontology exists for that language. Applying an English resource such as WordNet to text in another language will not produce correct senses; the resource must match the corpus language.

How can I tell whether the sense labels are correct?

WSD returns one sense label per target word and no confidence score, so a wrong label looks the same as a right one. Check a sample of outputs against annotated evaluation data, such as the test sets used in the Senseval and SemEval campaigns that Navigli (2009) discusses. Also compare the result with a simple baseline, such as always choosing the most frequent sense of each word, before concluding that the method improves your analysis.

Related methods

Sources

  1. Navigli, R. (2009). Word Sense Disambiguation: A Survey. ACM Computing Surveys (CSUR), 41(2), Article 10, 1-69.

    Open DOI reference
  2. Mihalcea, R. (2006). Knowledge-Based Methods for Word Sense Disambiguation. Computational Linguistics.

    Open publication reference