Downloads · 30 days
10
1% of all-time downloads
taniwasl/clickbait_es
clickbait_es is a text classification model from taniwasl. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This clickbait analysis model is based on the BETO, a Spanish variant of BERT.
Downloads · 30 days
10
1% of all-time downloads
All-time downloads
1.5K
Public
Parameters
110M
880 MB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors439 MB · 100%
From the Hugging Face model README
This clickbait analysis model is based on the BETO, a Spanish variant of BERT.
BETO is a BERT model trained on a big Spanish corpus. BETO is of size similar to a BERT-Base and was trained with the Whole Word Masking technique.
Model fine-tuned with a news (around ~30k) of several Spanish Newspapers.
Using transformers
BATCH_SIZE = 100
NUM_PROCS = 32
LR = 0.00005
EPOCHS = 5
MAX_LENGTH = 25
MODEL = 'dccuchile/bert-base-spanish-wwm-cased'
{'eval_loss': 0.0386480949819088,
'eval_accuracy': 0.9872786230980294,
'eval_runtime': 10.0476,
'eval_samples_per_second': 398.999,
'eval_steps_per_second': 4.081,
'epoch': 5.0}
This model is designed to classify newspaper news as clickbaits or not.
You can see a use case in this url: Spanish Newspapers
from transformers import (
AutoTokenizer,
AutoModelForSequenceClassification,
TextClassificationPipeline,
)
tokenizer = AutoTokenizer.from_pretrained("taniwasl/clickbait_es")
model = AutoModelForSequenceClassification.from_pretrained("taniwasl/clickbait_es")
review_text = 'La explosión destruye parcialmente el edificio, Egipto'
nlp = TextClassificationPipeline(task = "text-classification",
model = model,
tokenizer = tokenizer,
max_length = 25,
truncation=True,
add_special_tokens=True
)
print(nlp(review_text))
The license MIT best describes our intentions for our work. However we are not sure that all the datasets used to train BETO have licenses compatible with MIT (specially for commercial use). Please use at your own discretion only for no commercial use.