Downloads · 30 days
39
1% of all-time downloads
ken11/mbart-ja-en
mbart-ja-en is a translation model from ken11. 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.
このモデルはfacebook/mbart-large-cc25をベースにJESC datasetでファインチューニングしたものです。 This model is based on facebook/mbart-large-cc25 and fine-tuned with JESC dataset.
Downloads · 30 days
39
1% of all-time downloads
All-time downloads
4.7K
Public
Repo size
3.4 GB
Likes
5
Public
Click a slice to open those files.
.bin1.7 GB · 100%
From the Hugging Face model README
このモデルはfacebook/mbart-large-cc25をベースにJESC datasetでファインチューニングしたものです。
This model is based on facebook/mbart-large-cc25 and fine-tuned with JESC dataset.
from transformers import (
MBartForConditionalGeneration, MBartTokenizer
)
tokenizer = MBartTokenizer.from_pretrained("ken11/mbart-ja-en")
model = MBartForConditionalGeneration.from_pretrained("ken11/mbart-ja-en")
inputs = tokenizer("こんにちは", return_tensors="pt")
translated_tokens = model.generate(**inputs, decoder_start_token_id=tokenizer.lang_code_to_id["en_XX"], early_stopping=True, max_length=48)
pred = tokenizer.batch_decode(translated_tokens, skip_special_tokens=True)[0]
print(pred)
I used the JESC dataset for training.
Thank you for publishing such a large dataset.
The tokenizer uses the sentencepiece trained on the JESC dataset.
The result of evaluating the sacrebleu score for JEC Basic Sentence Data of Kyoto University was 18.18 .