H

hmbot

Name Last Update
.gitignore Loading commit data...
README.md Loading commit data...
create_chain.py Loading commit data...
hm_app.py Loading commit data...
index.fcgi Loading commit data...
irc_bot.py Loading commit data...
requirements.txt Loading commit data...
scanna.py Loading commit data...
stopwords_it.txt Loading commit data...

HowTo

Preparing data

virtualenv --no-site-packages ve
source ve/bin/activate
pip install -r requirements.txt
  • get an interesting mbox, say my.mbox
  • filter it with python scanna.py my.mbox > filtered.mbox
  • build a chain with python create_chain.py filtered.mbox filtered.dmp

Now, you are ready to have fun.

Irc Bot

python irc_bot.py filtered.dmp mychannelname

no, you should NOT put the # in front of mychannelname

Web Application

gunicorn hm_app:markov_app