MorphoArabia at BAREC 2025 Shared Task: A Hybrid Architecture with Morphological Analysis for Arabic Readability Assessmen
0
9 commits
2 linked in READMEs
updated Sep 12, 2025
This repository contains the official models and results for MorphoArabia, the submission to the BAREC 2025 Shared Task on Arabic Readability Assessment.
This project introduces a morphologically-aware approach for assessing the readability of Arabic text. The system is built around a fine-tuned regression model designed to process morphologically analyzed text. For the Constrained and Open tracks of the shared task, this core model is extended into a hybrid architecture that incorporates seven engineered lexical features.
A key element of this system is its deep morphological preprocessing pipeline, which uses the CAMEL Tools d3tok analyzer. This allows the model to capture linguistic complexities that are often missed by surface-level tokenization methods. This approach proved to be highly effective, achieving a peak Quadratic Weighted Kappa (QWK) score of 84.2 on the strict sentence-level test set.
The model predicts a readability score on a 19-level scale, from 1 (easiest) to 19 (hardest), for a given Arabic sentence or document.
You can use the fine-tuned models directly with the transformers library pipeline for text-regression. The following example uses the best-performing model from the Strict track.
from transformers import pipeline
# Load the regression pipeline
# This model is the best performer for the Strict track
# It's also the base model for the other tracks.
regressor = pipeline(
"text-regression",
model="FatimahEmadEldin/MorphoArabia-CAMEL-BERT-BAREC-Strict-Sentence"
)
# Example sentence in Arabic
sentence = "أليست هذه العاطفة التي نخافها ونرتجف لمرورها في صدورنا جزءا من الناموس الكلي"
# (Translation: "Isn't this emotion, which we fear and tremble at its passing in the chests, a part of the universal law?")
# Get the readability score
results = regressor(sentence)
# The output is a score between 1 and 19
predicted_score = results[0]['score']
print(f"Sentence: {sentence}")
print(f"Predicted Readability Score: {predicted_score:.2f}")
The system employs two distinct architectures based on the track's constraints:
CAMeL-Lab/readability-arabertv2-d3tok-reg, fine-tuned directly on the BAREC dataset.[CLS] token embedding with a 7-dimensional vector of engineered lexical features derived from the SAMER lexicon.A critical component of the system is its preprocessing pipeline, which leverages the CAMEL Tools d3tok format. The d3tok analyzer performs a deep morphological analysis by disambiguating words in context and then segmenting them into their constituent morphemes.
The models were evaluated on the blind test set provided by the BAREC organizers. The primary metric for evaluation is the Quadratic Weighted Kappa (QWK), which penalizes larger disagreements more severely.
| Track | Task | Dev (QWK) | Test (QWK) |
|---|---|---|---|
| Strict | Sentence | 0.823 | 84.2 |
| Document | 0.823* | 79.9 | |
| Constrained | Sentence | 0.810 | 82.9 |
| Document | 0.835* | 75.5 | |
| Open | Sentence | 0.827 | 83.6 |
| Document | 0.827* | 79.2 |
*Document-level dev scores are based on the performance of the sentence-level model on the validation set.
If you use the work, please cite the paper:
coming soon
}
MorphoArabia at BAREC 2025 Shared Task: A Hybrid Architecture with Morphological Analysis for Arabic Readability Assessmen
0
9 commits
2 linked in READMEs
updated Sep 12, 2025
This repository contains the official models and results for MorphoArabia, the submission to the BAREC 2025 Shared Task on Arabic Readability Assessment.
This project introduces a morphologically-aware approach for assessing the readability of Arabic text. The system is built around a fine-tuned regression model designed to process morphologically analyzed text. For the Constrained and Open tracks of the shared task, this core model is extended into a hybrid architecture that incorporates seven engineered lexical features.
A key element of this system is its deep morphological preprocessing pipeline, which uses the CAMEL Tools d3tok analyzer. This allows the model to capture linguistic complexities that are often missed by surface-level tokenization methods. This approach proved to be highly effective, achieving a peak Quadratic Weighted Kappa (QWK) score of 84.2 on the strict sentence-level test set.
The model predicts a readability score on a 19-level scale, from 1 (easiest) to 19 (hardest), for a given Arabic sentence or document.
You can use the fine-tuned models directly with the transformers library pipeline for text-regression. The following example uses the best-performing model from the Strict track.
from transformers import pipeline
# Load the regression pipeline
# This model is the best performer for the Strict track
# It's also the base model for the other tracks.
regressor = pipeline(
"text-regression",
model="FatimahEmadEldin/MorphoArabia-CAMEL-BERT-BAREC-Strict-Sentence"
)
# Example sentence in Arabic
sentence = "أليست هذه العاطفة التي نخافها ونرتجف لمرورها في صدورنا جزءا من الناموس الكلي"
# (Translation: "Isn't this emotion, which we fear and tremble at its passing in the chests, a part of the universal law?")
# Get the readability score
results = regressor(sentence)
# The output is a score between 1 and 19
predicted_score = results[0]['score']
print(f"Sentence: {sentence}")
print(f"Predicted Readability Score: {predicted_score:.2f}")
The system employs two distinct architectures based on the track's constraints:
CAMeL-Lab/readability-arabertv2-d3tok-reg, fine-tuned directly on the BAREC dataset.[CLS] token embedding with a 7-dimensional vector of engineered lexical features derived from the SAMER lexicon.A critical component of the system is its preprocessing pipeline, which leverages the CAMEL Tools d3tok format. The d3tok analyzer performs a deep morphological analysis by disambiguating words in context and then segmenting them into their constituent morphemes.
The models were evaluated on the blind test set provided by the BAREC organizers. The primary metric for evaluation is the Quadratic Weighted Kappa (QWK), which penalizes larger disagreements more severely.
| Track | Task | Dev (QWK) | Test (QWK) |
|---|---|---|---|
| Strict | Sentence | 0.823 | 84.2 |
| Document | 0.823* | 79.9 | |
| Constrained | Sentence | 0.810 | 82.9 |
| Document | 0.835* | 75.5 | |
| Open | Sentence | 0.827 | 83.6 |
| Document | 0.827* | 79.2 |
*Document-level dev scores are based on the performance of the sentence-level model on the validation set.
If you use the work, please cite the paper:
coming soon
}