Downloads · 30 days
0
chrisjay/mmtafrica
mmtafrica is a machine learning model from chrisjay. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Paper - Installation - Example - Model checkpoint - Citation
Downloads · 30 days
0
Access
Public
Updated Apr 20, 2022
Repo size
2.3 GB
Likes
3
Public
Click a slice to open those files.
.pt2.3 GB · 100%
From the Hugging Face model README
Paper - Installation - Example - Model checkpoint - Citation
This repository contains the official implementation of the MMTAfrica paper (Emezue & Dossou, WMT 2021).
We focus on the task of multilingual machine translation for African languages in the 2021 WMT Shared Task: Large-Scale Multilingual Machine Translation. We introduce MMTAfrica, the first many-to-many multilingual translation system for six African languages: Fon (fon), Igbo (ibo), Kinyarwanda (kin), Swahili/Kiswahili (swa), Xhosa (xho), and Yoruba (yor) and two non-African languages: English (eng) and French (fra). For multilingual translation concerning African languages, we introduce a novel backtranslation and reconstruction objective, BT&REC, inspired by the random online back translation and T5 modeling framework respectively, to effectively leverage monolingual data. Additionally, we report improvements from MMTAfrica over the FLORES 101 benchmarks (spBLEU gains ranging from +0.58 in Swahili to French to +19.46 in French to Xhosa).
To avoid any conflict with your existing Python setup, we suggest to work in a virtual environment:
python -m venv mmtenv
source mmtenv/bin/activate
Follow these instructions to install MMTAfrica.
git clone https://github.com/edaiofficial/mmtafrica.git
cd mmtafrica
pip install -r requirements.txt
python mmtafrica.py
Consult the arguments here.
Our data for the paper experiments is stored in the /experiments folder. To train MMTAfrica from scratch and reproduce our experiemnts, using the data we have in /experiments, run
cd experiments
python ../mmtafrica.py --model_name='mmtafrica' --homepath="<YOUR HOMEPATH>"
By default, homepath is the current working directory when you run the code.
Our model checkpoints is saved here.
@inproceedings{emezue-dossou-2021-mmtafrica,
title = "{MMTA}frica: Multilingual Machine Translation for {A}frican Languages",
author = "Emezue, Chris Chinenye and
Dossou, Bonaventure F. P.",
booktitle = "Proceedings of the Sixth Conference on Machine Translation",
month = nov,
year = "2021",
address = "Online",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2021.wmt-1.48",
pages = "398--411",
abstract = "In this paper, we focus on the task of multilingual machine translation for African languages and describe our contribution in the 2021 WMT Shared Task: Large-Scale Multilingual Machine Translation. We introduce MMTAfrica, the first many-to-many multilingual translation system for six African languages: Fon (fon), Igbo (ibo), Kinyarwanda (kin), Swahili/Kiswahili (swa), Xhosa (xho), and Yoruba (yor) and two non-African languages: English (eng) and French (fra). For multilingual translation concerning African languages, we introduce a novel backtranslation and reconstruction objective, BT{\&}REC, inspired by the random online back translation and T5 modelling framework respectively, to effectively leverage monolingual data. Additionally, we report improvements from MMTAfrica over the FLORES 101 benchmarks (spBLEU gains ranging from +0.58 in Swahili to French to +19.46 in French to Xhosa).",
}