Downloads · 30 days
9
14% of all-time downloads
AtefAndrus/jmoji-t5-v4_top50_20251224
jmoji-t5-v4_top50_20251224 is a translation model from AtefAndrus. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as mit.
日本語テキストから絵文字列を生成する翻訳モデルです。精度と多様性のバランスが良く、推奨モデルとして位置づけています。
Downloads · 30 days
9
14% of all-time downloads
All-time downloads
64
Public
Parameters
227M
908 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors908 MB · 100%
From the Hugging Face model README
日本語テキストから絵文字列を生成する翻訳モデルです。精度と多様性のバランスが良く、推奨モデルとして位置づけています。
SNS投稿やチャットメッセージに適切な絵文字を自動付与するタスクを想定しています。
from transformers import T5Tokenizer, T5ForConditionalGeneration
model_name = "AtefAndrus/jmoji-t5-v4_top50_20251224"
tokenizer = T5Tokenizer.from_pretrained(model_name)
model = T5ForConditionalGeneration.from_pretrained(model_name)
text = "試験に合格した"
inputs = tokenizer(text, return_tensors="pt", max_length=128, truncation=True)
outputs = model.generate(
**inputs,
max_length=32,
do_sample=True,
temperature=0.7,
top_k=50,
top_p=0.95,
repetition_penalty=1.2, # 推奨: 過剰生成抑制
)
result = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(result) # 例: 📚 😊 🎓 👏
| Parameter | Value |
|---|---|
| Learning Rate | 3e-4 |
| Batch Size | 16 |
| Epochs | 50 (Early Stopping: 5) |
| Label Smoothing | 0.1 |
| Focal Loss | 未使用(標準Cross Entropy) |
| Warmup Steps | 150 |
| Hardware | NVIDIA A100-SXM4-40GB |
| Metric | Value |
|---|---|
| Jaccard Similarity | 0.165 |
| Micro F1 | 0.269 |
| Precision | 0.313 |
| Recall | 0.234 |
| Diversity (Non-Top5 Ratio) | 21% |
| Model | Jaccard | Diversity | 特徴 |
|---|---|---|---|
| v4_focal_top50 | 0.182 | 14% | 精度最良 |
| v4_top50 (this) | 0.165 | 21% | バランス型(推奨) |
| v4_focal_top100 | 0.115 | 25% | 多様性最良 |
| v4_top100 | 0.120 | 21% | - |
過剰生成(同じ絵文字の繰り返し)を抑制するため、repetition_penalty=1.2の使用を推奨します。
@misc{jmoji2025,
author = {AtefAndrus},
title = {Jmoji: Japanese Text to Emoji Translation using Knowledge Distillation},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/AtefAndrus/jmoji-t5-v4_top50_20251224}
}
MIT License