Downloads · 30 days
10
19% of all-time downloads
Kalloniatis/Humor-Recognition_Greek-twhin-bert-large
Humor-Recognition_Greek-twhin-bert-large is a text classification model from Kalloniatis. Use it when you need a label for a piece of text. It is set up for transformers.
Downloads · 30 days
10
19% of all-time downloads
All-time downloads
53
Public
Parameters
561M
2.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.2 GB · 99%
From the Hugging Face model README
The model was pre-trained over 10 epochs on Greek Humorous Dataset
The text needs to be pre-processed by removing all greek diacritics and punctuation and converting all letters to lowercase
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("kallantis/Humor-Recognition-Greek-twhin-bert-large")
model = AutoModelForSequenceClassification.from_pretrained("kallantis/Humor-Recognition-Greek-twhin-bert-large", num_labels=2, ignore_mismatched_sizes=True)