Downloads · 30 days
144
1% of all-time downloads
zeyadusf/roberta-DAIGT-kaggle
roberta-DAIGT-kaggle is a text classification model from zeyadusf. 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.
- evalloss : 0.02619364485144615, - evalaccuracy: 0.9941391941391942, - evalf1-score: 0.9941391909936754, - epoch : 2.0
Downloads · 30 days
144
1% of all-time downloads
All-time downloads
28.3K
Public
Parameters
125M
997 MB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors499 MB · 99%
From the Hugging Face model README
Classification Report:
precision recall f1-score support
0 1.00 0.99 0.99 1365
1 0.99 1.00 0.99 1365
accuracy 0.99 2730
macro avg 0.99 0.99 0.99 2730
weighted avg 0.99 0.99 0.99 2730

import re
import html
def clean_text(text):
# Remove HTML tags
clean = re.compile('<.*?>')
text = re.sub(clean, '', text)
# Replace HTML entities with their corresponding characters
text = html.unescape(text)
# Remove extra whitespace and normalize spaces
text = re.sub(r'\s+', ' ', text).strip()
text = re.sub(r'[^a-zA-Z0-9\s]', '', text)
return re.sub("\s\s+", " ", text)