Skip to content

Experiments with different NMT (neural machine translation) models using TensorFlow, Keras.

Notifications You must be signed in to change notification settings

pradeepsinngh/Neural-Machine-Translation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neural Machine Translation in Tensorflow 2.0

This repository host my code base for Neural Machine Translation projects. I have implemented 3 different types of models for machine translation:

Dataset:

Repository Structure:

├─ NMT_xyz                      # replace xyz with attention, transformer, seq2seq
│  ├─ checkpoints               # stores encoder and decoder weights in .h5
│  │  ├─ decoder
│  │  │  └─ *.h5
│  │  └─ encoder
│  │  │  └─ *.h5
│  ├─ data.                     # data for training models
│  │  ├─ fra-eng
│  │  │  ├─ _about.txt
│  │  │  └─ fra.txt
│  │  └─ fra-eng.zip             # data in zip file
│  ├─ data.py                    # script for loading and creating dataset
│  ├─ model.py                   # file for encoder and decoder models
│  ├─ preprocessing.py           # for pre-processing data
│  ├─ run.py                     # driver file for the project - set MODE == 'TRAIN' or 'TEST'
│  └─ utils.py                   # utility function 
└─ readme.md            

How to train/ test:

To Train:

  • Set MODE = 'Train' in run.py file
  • run python run.py

To TEST/ PREDICT:

  • Set MODE = 'TEST' in run.py file
  • run python run.py

Releases

No releases published

Packages

No packages published

Languages