Forked from yxtay's char-rnn-text-generation. For simplicity, only Keras related files are left in this fork.
Two major modifications are made for conducting experiments in this article. (The article is written in Thai language.)
- A dictionary is now built from training data
- The test section has been added
These are some usage changes from the original version.
- Add an optional argument --test-path TEST_PATH for validation data.
- The default of --top-n is the total number of characters.
- The training file must be provided in --text-path in order to build a dictionary.
usage: keras_model.py test --checkpoint-path CHECKPOINT_PATH
--text-path TEXT_PATH
--test-path TEST_PATH