Abstract
Implementations of word sense disambiguation (WSD) algorithms tend to be tied to a particular test corpus format and sense inventory. This makes it difficult to test their performance on new data sets, or to compare them against past algorithms implemented for different data sets. In this paper we present DKPro WSD, a freely licensed, general-purpose framework for WSD which is both modular and extensible. DKPro WSD abstracts the WSD process in such a way that test corpora, sense inventories, and algorithms can be freely swapped. Its UIMA-based architecture makes it easy to add support for new resources and algorithms. Related tasks such as word sense induction and entity linking are also supported.
Introduction
Word Sense Disambiguation (WSD)—the task of determining which "sense" of a word is intended in a specific context—is a foundational challenge in Natural Language Processing. However, the field has long suffered from fragmentation. Most WSD implementations are "hard-coded" to work with a specific corpus format (like Senseval) or a specific dictionary (like WordNet). This lack of standardization creates a significant barrier for researchers: testing a classic algorithm on a new dataset or comparing two different algorithms often requires extensive rewriting of boilerplate code and data parsers. DKPro WSD addresses this by providing a modular, "plug-and-play" ecosystem for WSD research.
Framework Architecture and Methods
DKPro WSD is built on top of Apache UIMA (Unstructured Information Management Architecture), an industry-standard framework for building NLP pipelines. The core innovation is the abstraction of the WSD process into three interchangeable component types:
- Corpora and Data Sets: Readers that handle various file formats and extract the text to be disambiguated.
- Sense Inventories: Interfaces for lexical-semantic resources (dictionaries) that provide the list of possible meanings for a word.
- Algorithms: The actual logic that performs the disambiguation.
Because these components share a common interface, users can build pipelines where they swap an Estonian dictionary for an English one, or a simple "Lesk" algorithm for a complex graph-based one, without changing the rest of the system. The framework also leverages DKPro Core, allowing it to integrate standard preprocessing steps like POS tagging and lemmatization seamlessly through UIMA’s Common Analysis Structure (CAS).
Supported Resources and Evaluation
The framework provides built-in support for a wide array of existing benchmarks and resources:
- Evaluation Tasks: All-words and lexical sample tasks from Senseval (1, 2, 3) and SemEval.
- Corpora: MASC, SemCor, WebCAGe, and the AIDA CoNLL-YAGO set.
- Sense Inventories: WordNet, WordNet++, EuroWordNet, and UBY (a resource aligning WordNet, Wikipedia, Wiktionary, and more).
To ensure fair comparison, DKPro WSD automatically generates comprehensive HTML reports. These reports include precision-recall curves, confusion matrices, and instance-level results, ensuring that different algorithms are evaluated using identical metrics.
Key Insights and Results
DKPro WSD demonstrates that many WSD algorithms are "inventory-agnostic"; the same logic can be applied against WordNet or Wikipedia by simply swapping the inventory module. The framework also includes interactive graph visualizations to help researchers debug graph-based algorithms by seeing how they traverse semantic relations.
The authors demonstrated the framework's flexibility through several use cases, including a cross-lingual pipeline for an Estonian all-words task using EuroWordNet. The initial release includes a robust library of baselines (Random, Most Frequent Sense) and state-of-the-art approaches (Lesk variants, Degree Centrality, and Personalized PageRank). Additionally, a "Parameter Sweeping" tool allows for automated optimization across hundreds of pipeline configurations.
Conclusion and Future Work
DKPro WSD is released under the Apache License 2.0 as an open resource for the NLP community. While powerful, its continued utility depends on community contributions of new "wrappers" for tools and inventories. Future plans include adding support for the DANTE and BabelNet sense inventories, developing a web-based interface for non-programmers, and expanding the library of supervised WSD algorithms.
Summary updated