Skip to content

Code for training and running a translator from English to French with Deep Neural Networks

Notifications You must be signed in to change notification settings

n-lamprou/MachineTranslation

Repository files navigation

Machine Translation

Project Details

This project aims to build end-to-end machine translation pipeline capable of translating English text input to French output.

Different neural network architectures are evaluated and compared and details of their implementation can be found in the report.

Setup

  1. Create (and activate) a new environment with Python 3.6. ** Linux or Mac: **
conda create --name mtdl python=3.6
source activate mtdl
  1. Clone the repository and navigate to root of the repo. Then install several dependencies.
git clone https://github.com/n-lamprou/MachineTranslation.git
cd MachineTranslation
pip install .
  1. For using jupyter notebooks, create an IPython kernel for the cvdl environment.
python -m ipykernel install --user --name mtdl --display-name "mtdl"

Instructions

Training

To train a translator, the learn.py script needs to be executed. The additional -net arguement is usedd to choose the network architecture to be used. An example is shown below and the flag -h can be used to display all options.

python learn.py -net EmbeddingRNN

Translating

To translate some text run the translate.py script, followed by the network architecture of choice using the -net flag. In the terminal window, type in the English phrase you need to trannslate and hit return.

python translate.py -net EmbeddingRNN

About

Code for training and running a translator from English to French with Deep Neural Networks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages