Hostname: page-component-74656f9884-skzmx Total loading time: 0 Render date: 2026-11-05T20:57:46.542Z Has data issue: false hasContentIssue false

Syntax-ignorant N-gram embeddings for dialectal Arabic sentiment analysis

Published online by Cambridge University Press:  16 March 2020

Hala Mulki*
Affiliation:
Department of Computer Engineering, Konya Technical University, Turkey
Hatem Haddad
Affiliation:
RIADI Laboratory, National School of Computer Sciences, University of Manouba, Tunisia
Mourad Gridach
Affiliation:
Department of Computer Science, University of Oxford, Oxfordshire, United Kingdom
Ismail Babaoğlu
Affiliation:
Department of Computer Engineering, Konya Technical Univeristy, Turkey
*
*Corresponding author. E-mail: hallamulki@gmail.com
Rights & Permissions [Opens in a new window]

Abstract

Arabic sentiment analysis models have recently employed compositional paragraph or sentence embedding features to represent the informal Arabic dialectal content. These embeddings are mostly composed via ordered, syntax-aware composition functions and learned within deep neural network architectures. With the differences in the syntactic structure and words’ order among the Arabic dialects, a sentiment analysis system developed for one dialect might not be efficient for the others. Here we present syntax-ignorant, sentiment-specific n-gram embeddings for sentiment analysis of several Arabic dialects. The novelty of the proposed model is illustrated through its features and architecture. In the proposed model, the sentiment is expressed by embeddings, composed via the unordered additive composition function and learned within a shallow neural architecture. To evaluate the generated embeddings, they were compared with the state-of-the art word/paragraph embeddings. This involved investigating their efficiency, as expressive sentiment features, based on the visualisation maps constructed for our n-gram embeddings and word2vec/doc2vec. In addition, using several Eastern/Western Arabic datasets of single-dialect and multi-dialectal contents, the ability of our embeddings to recognise the sentiment was investigated against word/paragraph embeddings-based models. This comparison was performed within both shallow and deep neural network architectures and with two unordered composition functions employed. The results revealed that the introduced syntax-ignorant embeddings could represent single and combinations of different dialects efficiently, as our shallow sentiment analysis model, trained with the proposed n-gram embeddings, could outperform the word2vec/doc2vec models and rival deep neural architectures consuming, remarkably, less training time.

Information

Type
Article
Copyright
© Cambridge University Press 2020
Figure 0

Table 1. Free word order of dialectal Arabic

Figure 1

Table 2. Syntactic differences across the Arabic dialects

Figure 2

Figure 1. Tw-StAR neural sentiment analysis model.

Figure 3

Table 3. Notations used of Tw-StAR model

Figure 4

Table 4. Statistics of the used datasets

Figure 5

Table 5. F-measure values (%) obtained with dev sets for different window sizes

Figure 6

Table 6. Tw-StAR performances for n-gram, word2vec and doc2vec embeddings

Figure 7

Table 7. t-SNE visualisation of word vectors learned by word2vec/doc2vec against word vectors learned by Tw-StAR

Figure 8

Table 8. AVG, SOWE impact on SA of the dialectal datasets

Figure 9

Table 9. Tw-StAR versus CNN, LSTM and DAN deep models with SOWE function

Figure 10

Table 10. Tw-StAR versus CNN, LSTM and DAN deep models with Avg function

Figure 11

Figure 2. Training time across all architectures for SOWE and Avg functions. (a) Training time with SOWE. (b) Training time with Avg.

Figure 12

Figure 3. Training time consumed by all models for SOWE, Avg in TEAD.

Figure 13

Figure 4. Training time consumed by Tw-StAR for SOWE, Avg due to data size.

Figure 14

Table 11. Tw-StAR versus baseline models