Skip to content

This is a Neural Machine Translation application using PyTorch, EasyNMT, FastAPI, MongoDB and Docker.

Notifications You must be signed in to change notification settings

aivatoglou/neural-machine-translation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neural Machine Translation

This is a Neural Machine Translation application using PyTorch, EasyNMT, FastAPI, MongoDB and Docker.

The implementation focuses on the deployment using FastAPI for the RESTful services, MongoDB (Mongo Atlas) acting as the database and the Docker framework for the containerization of the application.

For the translation services, the EasyNMT package was used and a solution based on RNN neural networks from PyTorch tutorials on seq2seq networks.

The data used to train the seq2seq were downloaded from ManyThings.org.

Install

First of all, create a MongoDB account and edit the core/config.py with your Mongo cloud credentials. Then, build the container using the intstructions.

docker build -t app .
docker run -d --name app -p 8000:8000 {IMAGEID}

Usage

The FastAPI Swagger UI is located in localhost:8000/docs. Each request is protected through OAuth2 (so you need to create a user in order to interact with the APIs).

About

This is a Neural Machine Translation application using PyTorch, EasyNMT, FastAPI, MongoDB and Docker.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published