「.」がコーパスにないので,「.」を使わないようにしてください(.を使うといつも「そう言って」みたいなエラー翻訳が出ます)。英数字しか対応していません。(カタカナ表記でもいつか学習させてみます。)
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("SoMiyagawa/ainu-2-japanese")
model = AutoModelForSeq2SeqLM.from_pretrained("SoMiyagawa/ainu-2-japanese")
Model Trained Using AutoTrain
- Problem type: Translation
- Model ID: 40582105303
- CO2 Emissions (in grams): 52.2078
Validation Metrics
- Loss: 1.638
- SacreBLEU: 10.448
- Gen len: 14.110
- Downloads last month
- 32
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social
visibility and check back later, or deploy to Inference Endpoints (dedicated)
instead.