Downloads · 30 days
420
1% of all-time downloads
LoneWolfgang/bert-for-japanese-twitter-sentiment
bert-for-japanese-twitter-sentiment is a text classification model from LoneWolfgang. 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.
This model was finetuned from BERT for Japanese Twitter, which was adapted from Japanese BERT by Tohoku NLP by continuing MLM on a Twitter corpus.
Downloads · 30 days
420
1% of all-time downloads
All-time downloads
39.1K
Public
Parameters
111M
1.3 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors443 MB · 100%
From the Hugging Face model README
This model was finetuned from BERT for Japanese Twitter, which was adapted from Japanese BERT by Tohoku NLP by continuing MLM on a Twitter corpus.
It used Japanese Twitter Sentiment 1k (JTS1k) for finetuning, omitting the mixed examples.
0 -> Negative; 1 -> Neutral; 2 -> Positive
from transformers import pipeline
sentiment = pipeline("sentiment-analysis", model="LoneWolfgang/bert-for-japanese-twitter-sentiment")
sentiment ("こちらのカフェ、サービスが残念でした。二度と行かないかな…😞 #がっかり")
[{'label': 'negative', 'score': 0.8242}]