Skip to content
This is fork from Tensorflow's PTB RNN model with some additional features and experiments
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
.gitignore
LICENSE
README.md
__init__.py
process_data.py
ptb_word_lm.py
reader.py
reader_test.py

README.md

About

See full blog post here. You will need to have Tensorflow installed and, preferably, have a high-end NVIDIA GPU in case you'd like to do your own training.

Example Run

TRAINING (char model on tiny text)

python ~/repos/rnn_text_writer/ptb_word_lm.py --data_path=DSpeeches --file_prefix=dtrump --seed_for_sample="make america" --model=charlarge --save_path=charlarge

SAMPLING MODE (this assumes that there is trained model in "save_path"

python ~/repos/rnn_text_writer/ptb_word_lm.py --data_path=DSpeeches --file_prefix=dtrump --seed_for_sample="make america" --model=charlarge --save_path=charlarge --sample_mode=True
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.