Abstract
Traditional text classification often struggles with the limitations of the Bag of Words (BOW) model, such as ignoring semantic relationships and failing on short, sparse texts. This paper introduces a novel approach that represents documents as collections of Wikipedia concepts. By leveraging Wikipedia's internal link structure to build a semantic matrix, the authors enrich document representations, leading to significant improvements in classification accuracy, especially for short-text datasets.
Introduction
The standard Bag of Words (BOW) model treats documents as unordered collections of words, a method that overlooks semantic nuances. Synonyms like "automobile" and "car" are treated as distinct entities, and polysemous words with multiple meanings are conflated. These issues are exacerbated in short texts—such as tweets or search snippets—where the lack of word co-occurrence makes pattern recognition difficult. To address these challenges, this research utilizes Wikipedia as a source of background knowledge to provide the necessary semantic context for more effective text categorization.
Methodology
The proposed system, referred to as Wiki-SM, transforms raw text into a semantically enriched representation through a multi-step pipeline.
Wikipedia Concept Mapping
Instead of using individual words as features, document terms are mapped to Wikipedia concepts (article titles). This is achieved using a weighted word-concept inverted index built from a Wikipedia dump. To manage noise, the system retains only the "top-k" concepts for each word and the "top-m" concepts for the entire document.
The Semantic Matrix (WLM)
The core innovation lies in the construction of a semantic matrix using the Wikipedia Link-based Measure (WLM). This measure calculates the relatedness between concepts based on Wikipedia's hyperlink structure. If two articles link to each other or share common links, they are considered semantically related. This approach is computationally more efficient than analyzing the full text of millions of articles.
Semantic Enrichment and Classification
The document's concept vector is multiplied by the semantic matrix, "spreading" the weight of specific concepts to related ones. This process captures the broader context of the text. Finally, these enriched vectors are categorized using a standard Support Vector Machine (SVM).
Experimental Evaluation
The researchers evaluated Wiki-SM on both long-text datasets (e.g., Reuters-21578, OHSUMED, 20 Newsgroups, Movie Reviews) and short-text datasets (e.g., Google Snippets and synthetic short versions of standard datasets).
Key Results
Wiki-SM consistently outperformed the BOW baseline and other Wikipedia-based methods. For instance, on the OHSUMED medical abstract dataset, Micro-precision improved from 0.4712 to 0.5458. The gains were even more significant for short texts; on Google Snippets, Wiki-SM achieved a Micro-precision of 0.7335, compared to the baseline's 0.6673. T-tests confirmed these improvements were statistically significant.
Discussion: Parameter Sensitivity
A critical finding of the study is the sensitivity of the model to the "m" parameter—the number of concepts retained in the document vector. Keeping too many concepts introduces noise, while too few leads to information loss. The optimal value for "m" varies depending on the nature of the dataset.
Conclusion
By replacing words with Wikipedia concepts and utilizing link-based semantic relatedness, the Wiki-SM method effectively overcomes the sparsity and semantic limitations of traditional BOW models. While the approach is dependent on Wikipedia's coverage and requires initial computational overhead to process the encyclopedia's data, it offers a robust framework for improving text categorization and other information retrieval tasks. Future work will explore the use of Wikipedia's hierarchical category structure for even deeper semantic analysis.
Summary updated