CAMeLBERT-MSA ZAEBUC GED-43 Model

Model description

CAMeLBERT-MSA ZAEBUC GED-43 Model is a Modern Standard Arabic (MSA) grammatical error detection (GED) model that was built by fine-tuning the CAMeLBERT-MSA model. For the fine-tuning, we used a combination of the QALB-2014, QALB-2015, and ZAEBUC datasets. Please note that this model was fine-tuned on morphologically preprocessed text. Our fine-tuning procedure and the hyperparameters we used can be found in our paper "Advancements in Arabic Grammatical Error Detection and Correction: An Empirical Investigation." Our fine-tuning code and data can be found here.

Intended uses

You can use the CAMeLBERT-MSA GED-13 model model as part of the transformers pipeline.

How to use

To use the model with a transformers pipeline:

>>> from transformers import pipeline
>>> ged = pipeline('token-classification', model='CAMeL-Lab/camelbert-msa-zaebuc-ged-43')
>>> text = 'و قال له انه يحب اكل الطعام بكثره'
>>> ged(text)
[{'entity': 'MERGE-B', 'score': 0.99763834, 'index': 1, 'word': 'و', 'start': 0, 'end': 1}, {'entity': 'MERGE-I', 'score': 0.9990508, 'index': 2, 'word': 'قال', 'start': 2, 'end': 5}, {'entity': 'UC', 'score': 0.9996557, 'index': 3, 'word': 'له', 'start': 6, 'end': 8}, {'entity': 'REPLACE_OH', 'score': 0.93316317, 'index': 4, 'word': 'انه', 'start': 9, 'end': 12}, {'entity': 'UC', 'score': 0.99983513, 'index': 5, 'word': 'يحب', 'start': 13, 'end': 16}, {'entity': 'UC', 'score': 0.76680225, 'index': 6, 'word': 'اكل', 'start': 17, 'end': 20}, {'entity': 'UC', 'score': 0.99945396, 'index': 7, 'word': 'الطعام', 'start': 21, 'end': 27}, {'entity': 'REPLACE_OT', 'score': 0.9987212, 'index': 8, 'word': 'بكثره', 'start': 28, 'end': 33}]```



## Citation
```bibtex
@inproceedings{alhafni-etal-2023-advancements,
    title = "Advancements in {A}rabic Grammatical Error Detection and Correction: An Empirical Investigation",
    author = "Alhafni, Bashar  and
      Inoue, Go  and
      Khairallah, Christian  and
      Habash, Nizar",
    editor = "Bouamor, Houda  and
      Pino, Juan  and
      Bali, Kalika",
    booktitle = "Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing",
    month = dec,
    year = "2023",
    address = "Singapore",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2023.emnlp-main.396",
    doi = "10.18653/v1/2023.emnlp-main.396",
    pages = "6430--6448",
    abstract = "Grammatical error correction (GEC) is a well-explored problem in English with many existing models and datasets. However, research on GEC in morphologically rich languages has been limited due to challenges such as data scarcity and language complexity. In this paper, we present the first results on Arabic GEC using two newly developed Transformer-based pretrained sequence-to-sequence models. We also define the task of multi-class Arabic grammatical error detection (GED) and present the first results on multi-class Arabic GED. We show that using GED information as auxiliary input in GEC models improves GEC performance across three datasets spanning different genres. Moreover, we also investigate the use of contextual morphological preprocessing in aiding GEC systems. Our models achieve SOTA results on two Arabic GEC shared task datasets and establish a strong benchmark on a recently created dataset. We make our code, data, and pretrained models publicly available.",
}
Downloads last month
475
Inference Examples
Unable to determine this model's library. Check the docs .

Model tree for CAMeL-Lab/camelbert-msa-zaebuc-ged-43

Finetuned
(4)
this model

Collection including CAMeL-Lab/camelbert-msa-zaebuc-ged-43