This project can be used to train a translation model for any pair language. Example Twi-to-English , English-to-Twi English-to-Ga
- Copy your dataset into the data directory
- Set the FILE_PATH variable in the nmt_atten.ipynb notebook to the full path to your dataset
- The source sentence and the target dataset must be in the same file seperated by tap.
- Preferably save your dataset as a text file. See sample in the data directory
- Set the EPOCHS variable in the nmt_atten.ipynb notebook to the number of epochs you want the model be trained on the dataset.
- By default the EPOCHS variable in the nmt_atten.ipynb notebook has been set to 50
- After training the model will be saved to the models directory
- Your can test the model by loading it from the models directory