Hostname: page-component-74656f9884-npj9w Total loading time: 0 Render date: 2026-11-06T15:36:53.992Z Has data issue: false hasContentIssue false

A benchmark for evaluating Arabic word embedding models

Published online by Cambridge University Press:  17 October 2022

Sane Yagi
Affiliation:
Department of Foreign Languages, University of Sharjah, Sharjah, UAE
Ashraf Elnagar*
Affiliation:
Department of Computer Science, University of Sharjah, Sharjah, UAE
Shehdeh Fareh
Affiliation:
Department of Foreign Languages, University of Sharjah, Sharjah, UAE
*
*Corresponding author. E-mail: ashraf@sharjah.ac.ae
Rights & Permissions [Opens in a new window]

Abstract

Modelling the distributional semantics of such a morphologically rich language as Arabic needs to take into account its introflexive, fusional, and inflectional nature attributes that make up its combinatorial sequences and substitutional paradigms. To evaluate such word distributional models, the benchmarks that have been used thus far in Arabic have mimicked those in English. This paper reports on a benchmark that we designed to reflect linguistic patterns in both Contemporary Arabic and Classical Arabic, the first being a cover term for written and spoken Modern Standard Arabic, while the second for pre-modern Arabic. The analogy items we included in this benchmark are chosen in a transparent manner such that they would capture the major features of nouns and verbs; derivational and inflectional morphology; high-, middle-, and low-frequency patterns and lexical items; and morphosemantic, morphosyntactic, and semantic dimensions of the language. All categories included in this benchmark are carefully selected to ensure proper representation of the language. The benchmark consists of 45 roots of the trilateral, all-consonantal, and semivowel-inclusive types; six morphosemantic patterns (’af‘ala; ifta‘ala; infa‘ala; istaf‘ala; tafa‘‘ala; and tafā‘ala); five derivations (the verbal noun, active participle, and the contrasts in Masculine-Feminine; Feminine-Singular-Plural; Masculine-Singular-Plural); and morphosyntactic transformations (perfect and imperfect verbs conjugated for all pronouns); and lexical semantics (synonyms, antonyms, and hyponyms of nouns, verbs, and adjectives), as well as capital cities and currencies. All categories include an equal proportion of high-, medium-, and low-frequency items. For the purpose of validating the proposed benchmark, we developed a set of embedding models from different textual sources. Then, we tested them intrinsically using the proposed benchmark and extrinsically using two natural language processing tasks: Arabic Named Entity Recognition and Text Classification. The evaluation leads to the conclusion that the proposed benchmark is truly reflective of this morphologically rich language and discriminatory of word embeddings.

Information

Type
Article
Copyright
© The Author(s), 2022. Published by Cambridge University Press
Figure 0

Table 1. Proposed benchmark metrics for Arabic embeddings

Figure 1

Figure 1. Complete benchmark indicators (Testing set) versus the subset used for experimentation (Tested set).

Figure 2

Table 2. Top 3 results retrieved from the W2V-CBOW embedding of ’NEWS’

Figure 3

Table 3. Transliterations of the top 3 results retrieved from the W2V-CBOW embedding of ‘NEWS’ (Table 2)

Figure 4

Table 4. Top 3 results retrieved from the W2V-CBOW embedding of ‘REVIEWS’

Figure 5

Table 5. Transliterations of the top 3 results retrieved from W2V-CBOW embedding of ‘REVIEWS’ (Table 4)

Figure 6

Figure 2. Morphosemantics in HAC embedding models.

Figure 7

Figure 3. Morphosyntax in HAC embedding models.

Figure 8

Figure 4. Morphosyntax in all-datasets embedding model.

Figure 9

Figure 5. Semantics in HAC embedding models.

Figure 10

Figure 6. Word2Vec embeddings of HAC and OpenITI corpora.

Figure 11

Figure 7. Word2Vec embeddings of Masrawy and other NewsArticles datasets.

Figure 12

Figure 8. AraVec embedding versus our ‘Wiki’ embedding.

Figure 13

Figure 9. Overall performance on all test files grouped by benchmark categories.

Figure 14

Figure 10. ANER accuracy results per dataset for all embeddings.

Figure 15

Figure 11. ANER accuracy results per embedding for all datasets.

Figure 16

Figure 12. TC accuracy results per dataset for all embeddings.

Figure 17

Figure 13. TC accuracy results per embedding for all datasets.