Skip to content

This tool based under a Neural Machine Translation technology will help you translate English to German. The frontend uses ReactJS to dynamically render the DOM and Bootstrap to make the website responsive. The backend is written in Python using Flask to easily define the endpoints. The machine learning model was built using TensorFlow and OpenNMT.

License

Notifications You must be signed in to change notification settings

philt-one/nmt-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NMT-React

Screen Preview

This tool based under a Neural Machine Translation technology will help you translate English to German. The frontend uses ReactJS to dynamically render the DOM and Bootstrap to make the website responsive. The backend is written in Python using Flask to easily define the endpoints. The machine learning model was built using TensorFlow and OpenNMT.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

First, you'll need to install OpenNMT-tf, flask, flask_cors and pyonmttok. It is highly recommended to install them in a virtual environment.

virtualenv api/venv
. /venv/bin/activate
pip install --upgrade pip
pip install OpenNMT-tf flask flask_cors pyonmttok 

Then you'll need to install the dependencied for the frontend. We will use yarn instead of node because it downloads packages in parallel, which reduces the download time. Also because it adds nice emojis in the terminal while it's downloading. Everybody likes emojis! ❤️

yarn install

Download the pretrained OpenNMT model by executing the setup.sh script.

🚀 Starting the Frontend

To start the frontend, simply go in the root of the project (./nmt-react) and type yarn start.

🐍 Starting the Backend

To start the frontend, simply go in the api folder of the project (./nmt-react/api) and type python server.py.

Built With

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

This tool based under a Neural Machine Translation technology will help you translate English to German. The frontend uses ReactJS to dynamically render the DOM and Bootstrap to make the website responsive. The backend is written in Python using Flask to easily define the endpoints. The machine learning model was built using TensorFlow and OpenNMT.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published