CLLGJun 14, 2021

Evaluating Various Tokenizers for Arabic Text Classification

arXiv:2106.07540v258 citations
AI Analysis

This work addresses tokenization challenges for Arabic text classification, but it is incremental as it adapts existing ideas to a specific language.

The paper tackled the problem of tokenization for Arabic NLP by introducing three new tokenization algorithms and comparing them to baselines on unsupervised and supervised classification tasks, finding that no single technique is best overall, with performance depending on dataset size, task type, and morphology.

The first step in any NLP pipeline is to split the text into individual tokens. The most obvious and straightforward approach is to use words as tokens. However, given a large text corpus, representing all the words is not efficient in terms of vocabulary size. In the literature, many tokenization algorithms have emerged to tackle this problem by creating subwords which in turn limits the vocabulary size in a given text corpus. Most tokenization techniques are language-agnostic i.e they don't incorporate the linguistic features of a given language. Not to mention the difficulty of evaluating such techniques in practice. In this paper, we introduce three new tokenization algorithms for Arabic and compare them to three other baselines using unsupervised evaluations. In addition to that, we compare all the six algorithms by evaluating them on three supervised classification tasks which are sentiment analysis, news classification and poetry classification using six publicly available datasets. Our experiments show that none of the tokenization technique is the best choice overall and that the performance of a given tokenization algorithm depends on the size of the dataset, type of the task, and the amount of morphology that exists in the dataset. However, some tokenization techniques are better overall as compared to others on various text classification tasks.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes