An implementation of SeqGAN in Pytorch. Uses generative adversarial methods to train a language model to predict the next character.
- Python 3.6
- Pytorch (http://pytorch.org/)
- TQDM
To install all Python dependencies:
pip install -r requirements.txt
To train the model, run:
python train.py
To use a trained model to generate text, run:
python generate.py
The saved model file must be located in out/generator.torch
.