Abstract
This study investigates logistic regression, linear support vector machine, multinomial Naive Bayes, and Bernoulli Naive Bayes for classifying Libyan dialect utterances gathered from Twitter. The dataset used is the QADI corpus, which consists of 540,000 sentences across 18 Arabic dialects. Preprocessing challenges include handling inconsistent orthographic variations and non-standard spellings typical of the Libyan dialect. The chi-square analysis revealed that certain features, such as email mentions and emotion indicators, were not significantly associated with dialect classification and were thus excluded from further analysis. Two main experiments were conducted: (1) evaluating the significance of meta-features extracted from the corpus using the chi-square test and (2) assessing classifier performance using different word and character n-gram representations. The classification experiments showed that Multinomial Naive Bayes (MNB) achieved the highest accuracy of 85.89% and an F1-score of 0.85741 when using a (1,2) word n-gram and (1,5) character n-gram representation. In contrast, Logistic Regression and Linear SVM exhibited slightly lower performance, with maximum accuracies of 84.41% and 84.73%, respectively. Additional evaluation metrics, including log loss, Cohen kappa, and Matthew correlation coefficient, further supported the effectiveness of MNB in this task. The results indicate that carefully selected n-gram representations and classification models play a crucial role in improving the accuracy of Libyan dialect identification. This study provides empirical benchmarks and insights for future research in Arabic dialect NLP applications.
Abstract (translated)
这项研究探讨了逻辑回归、线性支持向量机、多项式朴素贝叶斯和伯努利朴素贝叶斯在分类从Twitter收集的利比亚方言语句时的效果。使用的数据集是QADI语料库,其中包括来自18种阿拉伯方言的54万句子。预处理挑战包括处理利比亚方言中不一致的正字法变化以及非标准拼写。 卡方分析表明,某些特征(如电子邮件提及和情感指标)与方言分类的相关性并不显著,并因此被排除在进一步分析之外。进行了两项主要实验:(1) 使用卡方检验评估从语料库中提取元特征的重要性;(2) 通过不同的词和字符n-gram表示来评估分类器性能。 分类实验显示,多项式朴素贝叶斯(MNB)使用(1,2)词n-gram和(1,5)字符n-gram表示时取得了最高的准确率85.89%和F1值0.85741。相比之下,逻辑回归和支持向量机的性能稍低一些,最高准确率为分别为84.41%和84.73%。 其他评估指标(如对数损失、Cohen Kappa系数和Matthews相关系数)进一步支持了MNB在此任务中的有效性。研究结果表明,精心选择的n-gram表示与分类模型对于提高利比亚方言识别准确性至关重要。本研究为未来在阿拉伯语方言自然语言处理应用方面的实证基准和见解提供了基础。
URL
https://arxiv.org/abs/2512.04257