Downloads · 30 days
20.7K
11% of all-time downloads
fakespot-ai/roberta-base-ai-text-detection-v1
roberta-base-ai-text-detection-v1 is a text classification model from fakespot-ai. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Finetuned RoBERTa-base model for detecting AI generated English texts.
Downloads · 30 days
20.7K
11% of all-time downloads
All-time downloads
193K
Public
Parameters
125M
997 MB on disk
Likes
25
Trending 1
Click a slice to open those files.
.bin499 MB · 50%
From the Hugging Face model README
Finetuned RoBERTa-base model for detecting AI generated English texts.
See FakespotAILabs/ApolloDFT for more details and a technical report of the model and experiments we conducted.
You can use this model directly with a pipeline.
For better performance, you should apply the clean_text function in utils.py.
from transformers import pipeline
from utils import clean_text
classifier = pipeline(
"text-classification",
model="fakespot-ai/roberta-base-ai-text-detection-v1"
)
# single text
text = "text 1"
classifier(clean_text(text))
[
{
'label': str,
'score': float
}
]
# list of texts
texts = ["text 1", "text 2"]
classifier([clean_text(t) for t in texts])
[
{
'label': str,
'score': float
},
{
'label': str,
'score': float
}
]