Skip to content

s3nh/markov_chain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

markov_chain

Simple markov chain for tweet generator

Based on reddit r/machinelearning and r/deeplearning headers.

thanks to Adrian for informative dataset

To do

  • tweepy

  • /html template

in progress

examples


mchain = MarkovChainGen(16, 120, 'dataset.txt)
model = mchain.build()
mchain.generate_text(model)

Some results

#Update

I connect this model into twitter account so you can see some of the results.

You can use it by yourself by using load_and_gen.py file with your own configuration. PM me please if you are interested in songdict.pkl file. It is too large to upload it on git ;)

TO do

Next - CharRNN in Pytorch.

Source: Eli Bendersky's website