- Clone this repository in local a directory using: git clone
- Execute dev_setup.ssh to create required directories (temp,bin,corpora and output): bash dev_setup.sh
- Copy the contents of corpora folder in the repo into the corpora folder in your local directory.
- Go to mactrans/bin and run train_mt.py using appropriate flag values according to dataset.
- After training, the model is saved in an hdf5 file. A pickle file with the same prefix as the hdf5 model file stores the fitted tokenizers along with a dictionary containing some essential variables and the path to the trained model, later used for translation.
- To translate sentences, the sentence to be translated (source) is passed as a command line argument along with the same prefix passed during training for the model and pickle files.
-
Notifications
You must be signed in to change notification settings - Fork 0
Ap1075/Neural-Machine-Translation
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Encoder-Decoder LSTM based machine translation model.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published