GitXplorerGitXplorer
e

human-or-neural-translation-demo

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
6acedd713ca41ae0a359312ee4c893e771925d34

add scripts for translating and generating splits.

eerip committed 3 years ago
Verified
c9dc0a4cb86d2cd8f47ad0cd0f62b9ca19befa52

Update README.md

eerip committed 3 years ago
Verified
657cbb2618af4347ce7088edf437cbc6b8b2278b

Initial commit

eerip committed 3 years ago

README

The README file for this repository.

Human or Neural Translation Reproduction

A small repro of the "Human or Neural Translation?" paper by Bhardwaj et al.

Requirements

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

Preparing the dataset

Download and untar the da-en file found here. Once untarred, run python split.py && python translate.py.

Running the experiments

Open the notebook in this directory with jupyter. If you have the dependencies installed and have a GPU, all should be well...