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.",
}
Runs of CAMeL-Lab camelbert-msa-zaebuc-ged-43 on huggingface.co
18
Total runs
0
24-hour runs
2
3-day runs
2
7-day runs
6
30-day runs
More Information About camelbert-msa-zaebuc-ged-43 huggingface.co Model
More camelbert-msa-zaebuc-ged-43 license Visit here:
camelbert-msa-zaebuc-ged-43 huggingface.co is an AI model on huggingface.co that provides camelbert-msa-zaebuc-ged-43's model effect (), which can be used instantly with this CAMeL-Lab camelbert-msa-zaebuc-ged-43 model. huggingface.co supports a free trial of the camelbert-msa-zaebuc-ged-43 model, and also provides paid use of the camelbert-msa-zaebuc-ged-43. Support call camelbert-msa-zaebuc-ged-43 model through api, including Node.js, Python, http.
camelbert-msa-zaebuc-ged-43 huggingface.co is an online trial and call api platform, which integrates camelbert-msa-zaebuc-ged-43's modeling effects, including api services, and provides a free online trial of camelbert-msa-zaebuc-ged-43, you can try camelbert-msa-zaebuc-ged-43 online for free by clicking the link below.
CAMeL-Lab camelbert-msa-zaebuc-ged-43 online free url in huggingface.co:
camelbert-msa-zaebuc-ged-43 is an open source model from GitHub that offers a free installation service, and any user can find camelbert-msa-zaebuc-ged-43 on GitHub to install. At the same time, huggingface.co provides the effect of camelbert-msa-zaebuc-ged-43 install, users can directly use camelbert-msa-zaebuc-ged-43 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
camelbert-msa-zaebuc-ged-43 install url in huggingface.co: