A small repro of the "Human or Neural Translation?" paper by Bhardwaj et al.
This repo assumes you have a GPU and have installed the relevant dependencies...
pip3 install torch==1.10.2+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html
pip3 install simpletransformers transformers sentencepiece scikit-learn pandas numpy sacremoses
Download and untar the da-en file found here. Once untarred, run python split.py && python translate.py
.
Open the notebook in this directory with jupyter. If you have the dependencies installed and have a GPU, all should be well...