Skip to content

zhiqu22/PhasedDecoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PhasedDecoder

This is the repository for the paper:
Improving Language Transfer Capability of Decoder-only Architecture in Multilingual Neural Machine Translation


Prerequisite:

  1. install Fairseq
  2. download Moses
  3. build TED-19 and OPUS-100 dataset as instructions here
  4. run commands
mkdir fairseq/models
mv PhasedDecoder fairseq/models/PhasedDecoder
mkdir moses
mv mosesdecoder/scripts moses

These files are ordered as following:

├── fairseq/  
│     └── models/  
├── pdec_work/  
│     ├── train/  
│     ├── ted_evaluation/  
│     ├── opus_evaluation/  
│     ├── logs(automatically make)/  
│     ├── results(automatically make)/  
│     └── checkpoints(automatically make)/  
├── moses/  
├── TED-BIN/  
└── OPUS-BIN/  

Finally, you can run the command to reproduce the results.

cd pdec_work
bash train/ted.sh
bash train/opus.sh
# note:
# please edit the variables "ROOT_PATH" and "DATA_BIN" in those two files as you need.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published