
# AraGPT2 Detector

Machine generated detector model from the [AraGPT2: Pre-Trained Transformer for Arabic Language Generation paper](https://arxiv.org/abs/2012.15520)

This model is trained on the long text passages, and achieves a 99.4% F1-Score.

# How to use it:
```python
from transformers import pipeline
from arabert.preprocess import ArabertPreprocessor

processor = ArabertPreprocessor(model="aubmindlab/araelectra-base-discriminator")
pipe = pipeline("sentiment-analysis", model = "aubmindlab/aragpt2-mega-detector-long")

text = " "
text_prep = processor.preprocess(text)
result = pipe(text_prep)
# [{'label': 'machine-generated', 'score': 0.9977743625640869}]
```


# If you used this model please cite us as :
```
@misc{antoun2020aragpt2,
      title={AraGPT2: Pre-Trained Transformer for Arabic Language Generation},
      author={Wissam Antoun and Fady Baly and Hazem Hajj},
      year={2020},
      eprint={2012.15520},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}
```

# Contacts
**Wissam Antoun**: [Linkedin](https://www.linkedin.com/in/wissam-antoun-622142b4/) | [Twitter](https://twitter.com/wissam_antoun) | [Github](https://github.com/WissamAntoun) | <wfa07@mail.aub.edu> | <wissam.antoun@gmail.com>

**Fady Baly**: [Linkedin](https://www.linkedin.com/in/fadybaly/) | [Twitter](https://twitter.com/fadybaly) | [Github](https://github.com/fadybaly) | <fgb06@mail.aub.edu> | <baly.fady@gmail.com>
{"language": "ar", "widget": [{"text": "\u0648\u0625\u0630\u0627 \u0643\u0627\u0646 \u0647\u0646\u0627\u0643 \u0645\u0646 \u0644\u0627 \u064a\u0632\u0627\u0644 \u064a\u0639\u062a\u0642\u062f \u0623\u0646 \u0644\u0628\u0646\u0627\u0646 \u0647\u0648 \u0633\u0648\u064a\u0633\u0631\u0627 \u0627\u0644\u0634\u0631\u0642 \u060c \u0641\u0647\u0648 \u0645\u062e\u0637\u0626 \u0625\u0644\u0649 \u062d\u062f \u0628\u0639\u064a\u062f . \u0641\u0644\u0628\u0646\u0627\u0646 \u0644\u064a\u0633 \u0633\u0648\u064a\u0633\u0631\u0627 \u060c \u0648\u0644\u0627 \u064a\u0645\u0643\u0646 \u0623\u0646 \u064a\u0643\u0648\u0646 \u0643\u0630\u0644\u0643 . \u0644\u0642\u062f \u0639\u0627\u0634 \u0627\u0644\u0644\u0628\u0646\u0627\u0646\u064a\u0648\u0646 \u0641\u064a \u0647\u0630\u0627 \u0627\u0644\u0628\u0644\u062f \u0645\u0646\u0630 \u0645\u0627 \u064a\u0632\u064a\u062f \u0639\u0646 \u0623\u0644\u0641 \u0648\u062e\u0645\u0633\u0645\u0626\u0629 \u0639\u0627\u0645 \u060c \u0623\u064a \u0645\u0646\u0630 \u062a\u0623\u0633\u064a\u0633 \u0627\u0644\u0625\u0645\u0627\u0631\u0629 \u0627\u0644\u0634\u0647\u0627\u0628\u064a\u0629 \u0627\u0644\u062a\u064a \u0623\u0633\u0633\u0647\u0627 \u0627\u0644\u0623\u0645\u064a\u0631 \u0641\u062e\u0631 \u0627\u0644\u062f\u064a\u0646 \u0627\u0644\u0645\u0639\u0646\u064a \u0627\u0644\u062b\u0627\u0646\u064a ( 1697 - 1742 )"}]}
transformers pytorch safetensors electra text-classification ar arxiv:2012.15520 autotrain_compatible endpoints_compatible has_space region:us
TAGS
#transformers #pytorch #safetensors #electra #text-classification #ar #arxiv-2012.15520 #autotrain_compatible #endpoints_compatible #has_space #region-us 


# AraGPT2 Detector

Machine generated detector model from the AraGPT2: Pre-Trained Transformer for Arabic Language Generation paper

This model is trained on the long text passages, and achieves a 99.4% F1-Score.

# How to use it:



# If you used this model please cite us as :


# Contacts
Wissam Antoun: Linkedin | Twitter | Github | <wfa07@URL> | <URL@URL>

Fady Baly: Linkedin | Twitter | Github | <fgb06@URL> | <URL@URL>
# AraGPT2 Detector

Machine generated detector model from the AraGPT2: Pre-Trained Transformer for Arabic Language Generation paper

This model is trained on the long text passages, and achieves a 99.4% F1-Score. # How to use it: # If you used this model please cite us as : # Contacts
Wissam Antoun: Linkedin | Twitter | Github | <wfa07@URL> | <URL@URL>

Fady Baly: Linkedin | Twitter | Github | <fgb06@URL> | <URL@URL>
TAGS
#transformers #pytorch #safetensors #electra #text-classification #ar #arxiv-2012.15520 #autotrain_compatible #endpoints_compatible #has_space #region-us 
 # AraGPT2 Detector

Machine generated detector model from the AraGPT2: Pre-Trained Transformer for Arabic Language Generation paper

This model is trained on the long text passages, and achieves a 99.4% F1-Score. # How to use it: # If you used this model please cite us as : # Contacts
Wissam Antoun: Linkedin | Twitter | Github | <wfa07@URL> | <URL@URL>

Fady Baly: Linkedin | Twitter | Github | <fgb06@URL> | <URL@URL>
passage: TAGS
#transformers #pytorch #safetensors #electra #text-classification #ar #arxiv-2012.15520 #autotrain_compatible #endpoints_compatible #has_space #region-us 
# AraGPT2 Detector

Machine generated detector model from the AraGPT2: Pre-Trained Transformer for Arabic Language Generation paper

This model is trained on the long text passages, and achieves a 99.4% F1-Score.# How to use it:# If you used this model please cite us as :# Contacts
Wissam Antoun: Linkedin | Twitter | Github | <wfa07@URL> | <URL@URL>

Fady Baly: Linkedin | Twitter | Github | <fgb06@URL> | <URL@URL>