Last active
March 19, 2020 14:13
-
-
Save himanish-star/b2190c8a0ece03044a022557b761c5b5 to your computer and use it in GitHub Desktop.
script to train model on all sentences
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from textgenrnn import textgenrnn | |
textgen = textgenrnn(weights_path="",vocab_path="",config_path="") | |
# textgen.generate() | |
textgen.train_from_file('part_1.txt', num_epochs=20, new_model=True) | |
textgen.save(weights_path="textgenrnn_all_sentences_weights_saved.hdf5") | |
textgen.generate() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment