Edit model card
YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/model-cards#model-card-metadata)

MMTAfrica

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).

Installation

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

Example

python mmtafrica.py 

Consult the arguments here.

Reproducing our paper

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.

Model checkpoint

Our model checkpoints is saved here.

Citation

@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).",
}
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference API
Unable to determine this model's library. Check the docs .

Spaces using chrisjay/mmtafrica 2