Downloads · 30 days
11
16% of all-time downloads
Kalloniatis/Humor-Recognition-Greek-xlm-mlm-100
Humor-Recognition-Greek-xlm-mlm-100 is a token classification model from Kalloniatis. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
11
16% of all-time downloads
All-time downloads
68
Public
Parameters
571M
2.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.3 GB · 100%
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 XLMTokenizer, XLMForSequenceClassification
import torch
import tensorflow as tf
tokenizer = XLMTokenizer.from_pretrained('kallantis/Humor-Recognition-Greek-xlm-mlm-100')
model = XLMForSequenceClassification.from_pretrained('kallantis/Humor-Recognition-Greek-xlm-mlm-100',num_labels=2, ignore_mismatched_sizes=True)