Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleArticle metrics
Research Article · Open access · Published 10 April 2023

Improving Arabic Named Entity Recognition with a Modified Transformer Encoder

Hamid Sadeq Mahdi Alsultani1 & Ahmed H. Aliwy2

Journal of Computer Science, Volume 19, Issue 5, pp. 599–609 · doi.org/10.3844/jcssp.2023.599.609

5,330 accesses3,499 downloads1 citations (Crossref)Journal metrics
Cite Check for updates

Abstract

This article investigates the use of a transformer encoder for Arabic Named Entity Recognition (NER). The classic transformer that was originally proposed for machine translation adopts the absolute sinusoidal position embedding which is aware of distance but unfortunately is not aware of the directionality. However, in the NER task, both distance and orientation are crucial. Therefore, in this study, instead of using absolute sinusoidal position encoding, we employ relative positional encoding and incorporate the directionality information in our NER model. More specifically, our proposed model uses Bidirectional Long Short-Term Memory (BiLSTM) for encoding every input token. Then, the output of the encoder is fed to the multi-head attention where both the distance and directionality information are incorporated. The decoder layer with a simple fully connected layer takes as input, the result of the attention layer, and the prediction layer with Conditional Random Fields (CRF) predicts the tag of each token. We validate our proposed approach on two merged public datasets, namely, ANER corp and AQMAR. Our experiment results demonstrate significant improvements when compare to the vanilla Transformer with absolute sinusoidal position encoding while achieving a state-of-the-art result on a merged two Arabic public datasets.

Licence and reuse

Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

Alsultani, H. S. M. & Aliwy, A. H. (2023). Improving Arabic Named Entity Recognition with a Modified Transformer Encoder. Journal of Computer Science, 19(5), 599–609. https://doi.org/10.3844/jcssp.2023.599.609

Licence
CC BY 4.0
Issue
Volume 19, Issue 5
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
Improving Arabic Named Entity Recognition with a Modified Transformer EncoderJournal of Computer Science · Volume 19, Issue 5 · pp. 599–609 · CC BY 4.0Download