Downloads · 30 days
323
3% of all-time downloads
Mitsua/elan-mt-bt-en-ja
elan-mt-bt-en-ja is a translation model from Mitsua. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as cc-by-sa-4.0.
ElanMT-BT-en-ja is a English to Japanese translation model developed by ELAN MITSUA Project / Abstract Engine. - ElanMT-base-en-ja and ElanMT-base-ja-en are trained from scratch, exclusively on openly licensed corpora…
Downloads · 30 days
323
3% of all-time downloads
All-time downloads
12.4K
Public
Parameters
60.6M
121 MB on disk
Likes
12
Trending 1
Click a slice to open those files.
.safetensors121 MB · 98%
From the Hugging Face model README
ElanMT-BT-en-ja is a English to Japanese translation model developed by ELAN MITSUA Project / Abstract Engine.
Despite the relatively low resource training, thanks to back-translation and a newly built CC0 corpus, the model achieved comparable performance to the currently available open translation models.
This is a translation model based on Marian MT 6-layer encoder-decoder transformer architecture with sentencepiece tokenizer.
pip install transformers accelerate sentencepiece
transformers==4.40.2from transformers import pipeline
translator = pipeline('translation', model='Mitsua/elan-mt-bt-en-ja')
translator('Hello. I am an AI.')
pip install transformers accelerate sentencepiece pysbd
import pysbd
seg_en = pysbd.Segmenter(language="en", clean=False)
txt = 'Hello. I am an AI. How are you doing?'
print(translator(seg_en.segment(txt)))
This idea is from FuguMT repo.
We heavily referred FuguMT author's blog post for dataset collection.
*Even if the dataset itself is CC-licensed, we did not use it if the corpus contained in the dataset is based on web crawling, is based on unauthorized use of copyrighted works, or is based on the machine translation output of other translation models.
We heavily referred "Beating Edinburgh's WMT2017 system for en-de with Marian's Transformer model" for training process and hyperparameter tuning.
ja-en back-translation model on 4M lines openly licensed corpus for 6 epochs. = ElanMT-base-ja-enen-ja base translation model on 4M lines openly licensed corpus for 6 epochs. = ElanMT-base-en-jaja Wikipedia to en using back-translation model.en-ja models, which is finetuned from ElanMT-base-en-ja checkpoint, on 24M lines training data augmented with back-translated data for 6 epochs.| Model | Params | FLORES+ BLEU | FLORES+ chrf | NTREX BLEU | NTREX chrf |
|---|---|---|---|---|---|
| ElanMT-BT | 61M | 29.96 | 38.43 | 25.63 | 35.41 |
| ElanMT-base w/o back-translation | 61M | 26.55 | 35.28 | 23.04 | 32.94 |
| ElanMT-tiny | 15M | 25.93 | 34.69 | 22.78 | 33.00 |
| staka/fugumt-en-ja (*1) | 61M | 30.89 | 38.38 | 24.74 | 34.23 |
| facebook/mbart-large-50-many-to-many-mmt | 610M | 26.31 | 34.37 | 23.35 | 32.66 |
| facebook/nllb-200-distilled-600M | 615M | 17.09 | 27.32 | 14.92 | 26.26 |
| facebook/nllb-200-3.3B | 3B | 20.04 | 30.33 | 17.07 | 28.46 |
| google/madlad400-3b-mt | 3B | 24.62 | 33.89 | 23.64 | 33.48 |
| google/madlad400-7b-mt | 7B | 25.57 | 34.59 | 24.60 | 34.43 |
transformers==4.29.2 and num_beams=4sacreBLEU with tokenize=ja-mecab