Downloads · 30 days
34
8% of all-time downloads
namopanda/deberta-v3-base-japanese-politeness
deberta-v3-base-japanese-politeness is a text classification model from namopanda. Use it when you need a label for a piece of text. The card lists the license as mit.
This model was fine-tuned on microsoft/deberta-v3-base using the KeiCO-corpus (https://github.com/Liumx2020/KeiCO-corpus). KeiCO-corpus © Ochanomizu University Kobayashi Lab, Liu Muxuan, licensed under CC BY 4.0 (http…
Downloads · 30 days
34
8% of all-time downloads
All-time downloads
404
Public
Parameters
184M
1.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin738 MB · 50%
How the weights are stored.
F32184M · 100%
From the Hugging Face model README
This model was fine-tuned on microsoft/deberta-v3-base using the KeiCO-corpus (https://github.com/Liumx2020/KeiCO-corpus). KeiCO-corpus © Ochanomizu University Kobayashi Lab, Liu Muxuan, licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).
We trained the model on the dataset split 8:1:1, achieving an accuracy of 0.747.
There are four levels, with politeness increasing as the level decreases, and LABEL_0 being the most polite.
from transformers import pipeline
classifier = pipeline("text-classification", model="namopanda/deberta-v3-base-japanese-politeness")
text = "こんにちは。お元気ですか?"
output = classifier(text)
print(f"label: {output[0]["label"]} score: {output[0]["score"]}")