Downloads · 30 days
1.3K
1% of all-time downloads
patrickramos/bert-base-japanese-v2-wrime-fine-tune
bert-base-japanese-v2-wrime-fine-tune is a text classification model from patrickramos. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as cc-by-sa-3.0.
This model is a Japanese BERT<subBASE</sub fine-tuned on the WRIME dataset. It was trained as part of the paper "Emotion Analysis of Writers and Readers of Japanese Tweets on Vaccinations". Fine-tuning code is availab…
Downloads · 30 days
1.3K
1% of all-time downloads
All-time downloads
125K
Public
Parameters
111M
1.3 GB on disk
Likes
6
Public
Click a slice to open those files.
.h5445 MB · 33%
How the weights are stored.
F32111M · 100%
From the Hugging Face model README
This model is a Japanese BERT<sub>BASE</sub> fine-tuned on the WRIME dataset. It was trained as part of the paper "Emotion Analysis of Writers and Readers of Japanese Tweets on Vaccinations". Fine-tuning code is available at this repo.
This model can be used to predict intensities scores for eight emotions for writers and readers. Please refer to the Fine-tuning data section for the list of emotions.
Because of the regression fine-tuning task, it is possible for the model to infer scores outside of the range of the scores of the fine-tuning data (score < 0 or score > 4).
The Japanese BERT<sub>BASE</sub> fine-tuned was cl-tohoku/bert-base-japanese-v2. Please refer to their model card for details regarding the model architecture, tokenization, pretraining data, and pretraining procedure.
The model is fine-tuned on WRIME, a dataset of Japanese Tweets annotated with writer and reader emotion intensities. We use version 1 of the dataset. Each Tweet is accompanied by a set of writer emotion intensities (from the author of the Tweet) and three sets of reader emotions (from three annotators). The emotions follow Plutchhik's emotions, namely:
These emotion intensities follow a four-point scale:
| emotion intensity | emotion presence |
|---|---|
| 0 | no |
| 1 | weak |
| 2 | medium |
| 3 | strong |
The BERT is fine-tuned to directly regress the emotion intensities of the writer and the averaged emotions of the readers from each Tweet, meaning there are 16 outputs (8 emotions per writer/reader).
The fine-tuning was inspired by common BERT fine-tuning procedures. The BERT was fine-tuned on WRIME for 3 epochs using the AdamW optimizer with a learning rate of 2e-5, β<sub>1</sub>=0.9, β<sub>2</sub>=0.999, weight decay of 0.01, linear decay, a warmup ratio of 0.01, and a batch size of 32. Training was conducted with an NVIDIA Tesla K80 and finished in 3 hours.
Below are the MSEs of the BERT on the test split of WRIME.
| Annotator | Joy | Sadness | Anticipation | Surprise | Anger | Fear | Disgust | Trust | Overall |
|---|---|---|---|---|---|---|---|---|---|
| Writer | 0.658 | 0.688 | 0.746 | 0.542 | 0.486 | 0.462 | 0.664 | 0.400 | 0.581 |
| Reader | 0.192 | 0.178 | 0.211 | 0.139 | 0.032 | 0.147 | 0.123 | 0.029 | 0.131 |
| Both | 0.425 | 0.433 | 0.479 | 0.341 | 0.259 | 0.304 | 0.394 | 0.214 | 0.356 |