Introduction
Text categorization—the process of assigning predefined labels to documents—is a cornerstone of Natural Language Processing (NLP). For decades, the standard approach has relied on the bag-of-words model using unigrams (single words). While effective, this method often fails to capture the semantic nuance found in specific phrases or "keywords" that define a document's core subject matter. This study investigates whether automatically extracted keywords can enhance machine learning classifiers, exploring various representations and integration strategies.
Methodology
The researchers implemented a two-stage pipeline to evaluate the utility of keywords in categorization:
- Keyword Extraction: Using a supervised method developed by Hulth, candidate terms were selected based on n-grams, noun phrase chunks, and Part-of-Speech (PoS) patterns. These candidates were ranked using term frequency (TF), inverse document frequency (IDF), and relative position.
- Text Categorization: A Linear Support Vector Machine (SVM) was employed for classification, chosen for its robustness in high-dimensional text environments.
Experiments were conducted on the Reuters-21578 corpus (ModApte split), utilizing 9,603 training documents and 3,299 test documents across 90 categories.
Experimental Settings
Four primary configurations were tested:
- Keywords-only (Intact): Multi-token keywords (e.g., "interest rates") were treated as single features.
- Keywords-only (Unigrams): Keywords were decomposed into individual stemmed words.
- Headlines-only: Categorization based solely on document titles.
- Full-text + Keywords: A hybrid model where the weight of a full-text unigram was increased if it also appeared in the predicted keyword list ($TF_{full} + TF_{keyword}$).
Keyword Extraction Performance
The effectiveness of the categorization is inherently linked to the quality of the initial extraction. The keyword extractor achieved an F-measure of approximately 44.0% when compared to manual indexing. As shown in the performance curves, there is a clear trade-off between precision and recall depending on the number of keywords assigned per document.
Categorization Results
The study found that while keywords alone are insufficient to replace full text, they provide a measurable performance boost when used as a weighting mechanism. The hybrid "Full-text + Keywords" approach yielded the highest overall performance.
| Input Feature | Representation | F-measure |
|---|---|---|
| Full-text (Baseline) | tf*idf unigrams | 80.98% |
| Keywords-only | Intact phrases | 56.70% |
| Keywords-only | Stemmed unigrams | 74.99% |
| Headlines-only | Stemmed unigrams | 79.28% |
| Full-text + Keywords | Weighted unigrams | 81.72% |
Discussion and Key Insights
Several critical observations emerged from the data:
- The "Intact" Penalty: Keeping multi-word phrases intact significantly hindered performance (56.70% F-measure). This is attributed to data sparsity; specific phrases occur far less frequently than their constituent words, making it difficult for the SVM to identify reliable patterns.
- The Density of Titles: Using only document headlines achieved a surprising 79.28% F-measure. This suggests that human-authored titles are exceptionally dense with categorical information, nearly matching the performance of the entire document text.
- Strategic Weighting: The most effective use of keywords was not as independent features, but as a means to "nudge" the model. By increasing the weight of words identified as keywords, the model could better distinguish significant "signal" from the surrounding "noise" in the full text.
Conclusion
This research demonstrates that automatically extracted keywords provide a modest but statistically significant improvement to text categorization. While the gain from 80.98% to 81.72% is incremental, it suggests that even imperfect keyword extraction (at 44% F-measure) can refine the standard bag-of-words model. Future work may explore more sophisticated weighting schemes, such as using the extractor's confidence scores, or testing the pipeline on more diverse domains like social media or legal documentation.
Summary updated