Downloads · 30 days
29
5% of all-time downloads
Jessy3ric/camembert-twitter-emoji
camembert-twitter-emoji is a text classification model from Jessy3ric. Use it when you need a label for a piece of text. It is set up for transformers.
This is a Camembert-base model trained on a corpus of 50K french tweets.
Downloads · 30 days
29
5% of all-time downloads
All-time downloads
592
Public
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.pt545 MB · 66%
From the Hugging Face model README
This is a Camembert-base model trained on a corpus of 50K french tweets.
The model can predict which of the 25 emojis it has been trained with suits the best on a given sentence / tweet. The 25 emojis are the 25 most frequent in the dataset.
We've succeeded to obtain a 32% accuracy on a small amount of tweets.
Note: We've also decided to keep the emojis in their demojized versions because some emojis could be seen as two (ex : 👍🏿)
from transformers import AutoModelForSequenceClassification, AutoTokenizer, TFAutoModelForSequenceClassification
MODEL = f"Jessy3ric/camembert-twitter-emoji"
tokenizer = AutoTokenizer.from_pretrained(MODEL)
model = AutoModelForSequenceClassification.from_pretrained(MODEL)
model.save_pretrained(MODEL)