Skip to content

tanakatsu/rnn-horsename-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rnn-horsename-generator

This is forked from yusuketomoto/chainer-char-rnn.

Requirement

$ pip install chainer

Train

Start training the model using train.py, for example

$ python train.py

The --data_dir flag specifies the dataset to use. By default it is set to data/umaname which consists of a subset of names of Japanese racehorses.

Your own data: If you'd like to use your own data create a single file input.txt and place it into a folder in data/. For example, data/some_folder/input.txt.

Sampling

Given a checkpoint file (such as those written to cv) we can generate new text. For example:

$ python sample.py \
--vocabulary data/unaname/vocab.bin \
--model cv/some_checkpoint.chainermodel \
--primetext some_text

References

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages