Downloads · 30 days
38
0% of all-time downloads
aubmindlab/aragpt2-mega-detector-long
aragpt2-mega-detector-long is a text classification model from aubmindlab. Use it when you need a label for a piece of text. It is set up for transformers.
Machine generated detector model from the AraGPT2: Pre-Trained Transformer for Arabic Language Generation paper
Downloads · 30 days
38
0% of all-time downloads
All-time downloads
85K
Public
Parameters
135M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin541 MB · 50%
How the weights are stored.
F32135M · 100%
From the Hugging Face model README
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.
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}]
@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}
}
Wissam Antoun: Linkedin | Twitter | Github | [email protected] | [email protected]
Fady Baly: Linkedin | Twitter | Github | [email protected] | [email protected]