How to run the examples
- Install conda: https://docs.conda.io/projects/conda/en/latest/user-guide/install/
- Create new environment from environment.yaml:
conda env create -f environment.yml
- For Yelp examples:
- Download the Yelp reviews dataset: https://www.yelp.com/dataset
- Provide the filepath to Yelp reviews dataset in
args.py
- For Machine Translation examples:
- Download the translation pairs from: https://www.manythings.org/anki/ to
data/{lang}.txt
It must be English to other language dataset. - Set the language code in
args.py
- Download the translation pairs from: https://www.manythings.org/anki/ to
- Train the model:
python train.py
- Test the model:
python test.py
- Plot the learning epochs:
python plot.py