alex-grover / machine-translator

Final project for Stanford CS 124.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

machine-translator

Final project for Stanford CS 124. Translates Spanish sentences to English using Machine Translation techniques.

Required setup:

sudo pip install ntlk
python
>>> import nltk
>>> nltk.download()

And download all from the website.

From the code/ directory:

To run on the dev set:

python translator.py ../dic/dict.txt ../corpus/dev.txt

To run on the test set:

python translator.py ../dic/dict.txt ../corpus/test.txt

About

Final project for Stanford CS 124.

License:ISC License


Languages

Language:Python 100.0%