In this repo we design a language translator using transformers.
- Create an environment:
python -m venv venv
- Activate the environment:
source venv/bin/activate
(to deactivate just rundeactivate
) - Install requirements:
pip install -r requirements.txt
- Train a model:
python -m train
- Load/save trained model:
- Save the trained model by setting
save_model
to True. - Set the model filename and path in the config too.
- Load the model by setting
load_model
to True.
- Save the trained model by setting