Effects of term weighting approach with and without stop words removing on Arabic text classification
Summary
The paper asks how two simple ways of encoding words as features affect supervised classification of Arabic documents, and whether stripping stop words changes the outcome. The two encodings are binary presence/absence and raw term frequency (TF). Arabic is a hard case because of its rich morphology, homonymy, part-of-speech ambiguity, flexible word order and case-dependent word forms. The authors cite light stemming as one way to address the word-form problem. They use a small Arabic corpus covering six topics. Two Naive Bayes variants are applied: a Multivariate Bernoulli model for the presence-based features and a Multinomial model for the count-based ones. A 2×2 design crosses the encoding with stop-word removal on or off, and each run is scored on accuracy, recall, precision and F-measure. TF with stop-word removal gives the best results (about 0.95 accuracy). Without removal, the ranking flips and binary features come out ahead, while precision is roughly tied. For a fixed encoding, removing stop words helps. The point is that preprocessing and representation choices interact, so they should not be tuned separately.
Key points
- Corpus: six categories (agriculture, economy, health, politics, science, sport), with 50 documents each and 61 for health.
- The stated total of 322 documents does not match these per-class counts, which add up to 311.
- Classifiers: Multivariate Bernoulli Naive Bayes (MBNB) for binary weighting and the Multinomial Naive Bayes model for TF weighting.
- Results table (Accuracy / Recall / Precision / F-measure):
- Exp.1: 0.953 / 0.953 / 0.960 / 0.954
- Exp.2: 0.922 / 0.922 / 0.940 / 0.923
- Exp.3: 0.882 / 0.882 / 0.914 / 0.877
- Exp.4: 0.913 / 0.937 / 0.913 / 0.913
- Labeling problem: the paper's descriptions of Exp.3 and Exp.4 are inconsistent with each other and with its own claims, so the mapping of runs to conditions should be read with caution.
- Reported margins: with stop-word removal, TF beats binary by about 3% accuracy. Without removal, binary beats TF by about 4%.
- Related work is surveyed, including:
- OSAC (Saad, 2010), with 22,429 documents in ten categories.
- Al-Salemi & Aziz (2011), who found MBNB better than the NB and MNB models using the TREC-2002 Light Stemmer.
- PATC, a MapReduce-based parallel Arabic classifier.
Interesting ideas
- I1. Crossing a preprocessing switch with a representation choice in a full 2×2 grid shows interaction effects, here a ranking that flips depending on stop-word removal, which one-factor-at-a-time tests would miss. — For Mova (learn): Run ablations of the tokenizer or normalization options crossed with parser variants, so that a component is never declared "better" from tests under only one preprocessing setting.
- I2. Each feature encoding is paired with the model whose assumptions fit it: a presence/absence model for binary features and a count model for frequencies. This avoids mismatches between what the data says and what the model expects. — For Mova (world): When compiling knowledge such as verb-class or frame statistics, choose the scoring model to match whether a fact is a yes/no attestation or a graded count.
- I3. Reporting several metrics side by side reveals cases where configurations differ in accuracy and recall but are practically tied on precision, which a single headline number would hide. — For Mova (answer): Report precision and recall separately for school-test and fable-QA readers, so that a change which only trades abstentions for errors is visible.
- I4. The paper's internal inconsistencies (corpus total, experiment labels) illustrate why experiment configurations should be recorded automatically rather than described by hand afterwards. — For Mova (learn): Store each evaluation run with a machine-generated manifest of its settings and per-class counts, and check that the totals add up before results are written up.
- I5. Whether a token class like stop words counts as noise depends on the representation consuming it: removal helped count-based features more than presence-based ones. — For Mova (tokens): Function words are essential for UD parsing, but any filtering for downstream lexical statistics should be made per consumer and measured, not applied globally in the tagger.
Cite
@misc{alhenawi2024effects,
title = {{Effects of term weighting approach with and without stop words removing on Arabic text classification}},
author = {Alhenawi, Esra'a and Khurma, Ruba Abu and Castillo, Pedro A. and Arenas, Maribel G.},
year = {2024},
doi = {10.48550/arxiv.2402.14867},
eprint = {2402.14867},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2402.14867}
}References
- Al-Salemi, B. and Aziz, M. J. A. (2011). Statistical bayesian learning for automatic arabic text categorization. Journal of computer Science, 7(1):39. find
- Alshahrani, M. and Alkhalifa, S. (2018). Patc: Parallel arabic text classifier. In 2018 21st Saudi Computer Society National Computer Conference (NCC), pages 1–7. IEEE. Arabic. http://sourceforge.net/projects/ar-text-mining/files/ Arabic-Corporawebsite. ↗
- Duwairi, R., Al-Refai, M., and Khasawneh, N. (2007). Stemming versus light stemming as feature selection techniques for arabic text categorization. In 2007 Innovations in Information Technologies (IIT), pages 446–450. IEEE. find
- El Kourdi, M., Bensaid, A., and Rachidi, T.-e. (2004). Automatic arabic document categorization based on the na¨ıve bayes algorithm. In proceedings of the Workshop on Computational Approaches to Arabic Script-based Languages, pages 51–58. find
- Guru, D., Ali, M., Suhil, M., and Hazman, M. (2019). A study of applying different term weighting schemes on arabic text classification. In Data Analytics and Learning, pages 293–305. Springer. find
- He, J., Tan, A.-H., and Tan, C.-L. (2003). On machine learning methods for chinese document categorization. Applied Intelligence, 18(3):311–322. find
- Peng, F., Huang, X., Schuurmans, D., and Wang, S. (2003). Text classification in asian languages without word segmentation. In Proceedings of the sixth international workshop on Information retrieval with Asian languages, pages 41–48. find
- Ruiz, M. E. and Srinivasan, P. (1999). Hierarchical neural networks for text categorization. In Proceedings of the 22nd annual international ACM SIGIR conference on Research and development in information retrieval, pages 281–282. find
- Saad, M. K. (2010). The impact of text preprocessing and term weighting on arabic text classification. stemmer. http://sourceforge.net/projects/arabicstemmer. ↗
- Taha, A. Y. and Tiun, S. (2016). Binary relevance (br) method classifier of multi-label classification for arabic text. Journal of Theoretical & Applied Information Technology, 84(3). find
This page in Markdown → https://md.research.elamur.ai/free/en/papers/alhenawi-2024-effects-term-weighting-approach-stop/