Classical Arabic narratives present unique challenges in the computational analysis of their texts, due to the language's highly complex morphology, orthographic ambiguity, and stylistic variations over time. This study presents a framework for Explainable Artificial Intelligence (XAI) for cognitive and pragmatic study of Arabic texts with two typical tasks, namely author attribution and Named Entity Recognition (NER). The ground truth used in the framework is not synthetically created, but rather comes from two already available resources, that are sufficiently rich to provide strong, machine-verifiable ground truth: the OpenITI corpus segmented in passages and labeled by the Author URI for multi-class attribution for six classical authors and CLEAN-ANERCorp, a corrected CoNLL format Arabic NER corpus recast as a windowed-context classification task with labels PER, LOC, ORG, MISC and O. The four traditional machine-learning classifiers, Logistic Regression, Multinomial Naive Bayes, Linear Support Vector Machine (SVM), and Random Forest are systematically benchmarked after the normalization and TF-IDF vectorization of the Arabic texts (unigrams and bigrams, vocabulary limited to approximately 8,000 features, minimum document frequency of 1). Models are tested using an 80/20 stratified train-test split, and accuracy, weighted precision, weighted recall, weighted F1-score, Matthews Correlation Coefficient (MCC), and Cohen's Kappa are used to evaluate models. The Linear SVM achieves the best performance with an 80/20 split, with an author-attribution F1 of 0.932 and an NER F1 of 0.809, while an 80/40 split yields an author-attribution F1 of 0.942. The ten most important TF-IDF features are extracted for each class and presented as a pair of Arabic-English word lists, thereby providing algorithmic transparency. Together, the results demonstrate that linear discriminative models and appropriate lexical feature engineering can provide a very accurate and interpretable baseline for the development of natural language processing algorithms for Arabic.
Hamood Mohammed Alrumhi, Muhammad Asshad, Amjed Abbas Ahmed et al.· JOIV: International Journal...· 0 citations
Verb phrase ellipsis (VPE) poses considerable challenges in translation from English into Arabic, especially when using automated systems where syntactic nuances are often unresolved. This study examines how Neural Machine Translation (NMT) tools and Large Language Models (LLM) process VPE in English-Arabic translation. Using Google Translate (GT) and ChatGPT-4o (GPT-4o) as representatives of each of these technologies, a dataset of 413 English sentences containing instances of VPE was translated into Arabic using both tools. Each output was then analyzed, focusing on accuracy and ellipsis recovery quality with a categorization of translation patterns used in rendering the VPE instances. This study aims to assess how GT and GPT-4o translate English VPE into Arabic, focusing on the accuracy of ellipsis reconstruction and the translation strategies employed. A quantitative comparative method was employed, supported by a frequency-based analysis to determine recurring patterns. The results revealed that both tools employed the same recovery patterns but with different frequencies. GT outperformed GPT-4o in overall accuracy, producing more consistent and contextually appropriate translations. GT successfully used modulation, lexical repetition, and substitution, while GPT-4o heavily used substitution but with many incomplete instances, indicating its lack of ability to make context-dependent inferences. The study underscores the importance of better-quality training data for NMT and LLM tools for both discourse-level processing and context-dependent data. This study offers insights into research on computational linguistics and machine translation with practical implications for translation software developers, Arabic language specialists, and researchers in machine translation assessment.
Eassa Ali, Abbas Brashi, Dana Awad et al.· The International Journal of...· 0 citations