Skip to main content
QUICK REVIEW

[Paper Review] Wojood: Nested Arabic Named Entity Corpus and Recognition using BERT

Mustafa Jarrar, Mohammed Khalilia|arXiv (Cornell University)|May 19, 2022
Topic ModelingComputer Science19 citations
TL;DR

This paper introduces Wojood, a large-scale, manually annotated Arabic Named Entity Recognition (NER) corpus with 550K tokens and 21 entity types, including nested entities—where one entity is contained within another. The authors fine-tune AraBERT using a multi-task learning architecture, achieving a micro F1-score of 0.884 on nested NER, and release the corpus, guidelines, code, and pre-trained model publicly.

ABSTRACT

This paper presents Wojood, a corpus for Arabic nested Named Entity Recognition (NER). Nested entities occur when one entity mention is embedded inside another entity mention. Wojood consists of about 550K Modern Standard Arabic (MSA) and dialect tokens that are manually annotated with 21 entity types including person, organization, location, event and date. More importantly, the corpus is annotated with nested entities instead of the more common flat annotations. The data contains about 75K entities and 22.5% of which are nested. The inter-annotator evaluation of the corpus demonstrated a strong agreement with Cohen's Kappa of 0.979 and an F1-score of 0.976. To validate our data, we used the corpus to train a nested NER model based on multi-task learning and AraBERT (Arabic BERT). The model achieved an overall micro F1-score of 0.884. Our corpus, the annotation guidelines, the source code and the pre-trained model are publicly available.

Motivation & Objective

  • To address the lack of large-scale, high-quality Arabic NER datasets with nested entity annotations, which are underrepresented in low-resource languages like Arabic.
  • To improve Arabic NER performance by developing a model capable of recognizing hierarchical, nested entity structures in both Modern Standard Arabic and dialect.
  • To ensure data quality through rigorous inter-annotator agreement evaluation, achieving a Cohen’s Kappa of 0.979 and F1-score of 0.976.
  • To release a publicly available corpus, annotation guidelines, source code, and a pre-trained model to support future research in Arabic NLP, especially in nested NER and entity linking.
  • To extend the utility of the corpus by linking entities to Wikidata and an Arabic ontology for enhanced semantic understanding and downstream applications.

Proposed method

  • The Wojood corpus was manually annotated with 21 entity types across MSA and dialect texts, covering multiple domains and supporting up to four layers of nesting.
  • Inter-annotator agreement was measured using Cohen’s Kappa (0.979) and F1-score (0.976), confirming high annotation quality.
  • A multi-task learning framework was designed to train a BERT-based model on nested NER, with shared contextual representations from AraBERT (Arabic BERT) and task-specific heads for sequence labeling.
  • The model uses IOB2 tagging scheme and is trained end-to-end with cross-entropy loss, optimizing for entity boundary and type prediction.
  • The architecture supports joint prediction of nested entities by modeling hierarchical dependencies through stacked tagging heads.
  • A RESTful web service was implemented to expose the model, supporting JSON, XML, and IOB2 output formats with a user interface for visualizing nested entities.

Experimental results

Research questions

  • RQ1How can a large-scale, high-quality Arabic nested NER corpus be constructed to support research in low-resource NLP?
  • RQ2What is the performance of a BERT-based model fine-tuned on a multi-task learning setup for recognizing nested entities in Arabic text?
  • RQ3To what extent does inter-annotator agreement validate the reliability of the Wojood corpus for nested entity annotation?
  • RQ4Can a pre-trained AraBERT model effectively learn to detect nested entities when fine-tuned with multi-task learning on a diverse Arabic corpus?
  • RQ5What are the limitations of current models in recognizing nested entities of the same type, and how can they be addressed in future work?

Key findings

  • The Wojood corpus contains approximately 550K tokens and 75,000 entities, with 22.5% of entities being nested, making it one of the largest Arabic nested NER datasets.
  • Inter-annotator agreement reached a Cohen’s Kappa of 0.979 and an F1-score of 0.976, indicating strong annotation consistency and high data quality.
  • The fine-tuned AraBERT model achieved a micro F1-score of 0.884 on the nested NER task, demonstrating strong performance on complex hierarchical entity recognition.
  • The model performed best on GPE (F1=0.947) and worst on QUANTITY, UNIT, PERCENT, WEBSITE, and TIME, due to low annotation frequency for these types.
  • The model could not recognize nested entities of the same type (e.g., nested organizations), highlighting a key limitation for future improvement.
  • The corpus, annotation guidelines, source code, and pre-trained model are publicly available, enabling broader research in Arabic NLP, entity linking, and knowledge graph integration.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.