This is the (extremely simple) code underlying @KJVBlockchain - the "Markov chain bot trained on the King James Bible & various ICO whitepapers".
Markov chain requirements:
- Python (2 or 3)
- markovify
Run python3 kjvico_train.py
to train and display tweets.
The repo contains the training corpus. These texts (KJV + ICOs) were originally obtained from:
The ICO whitepaper collection need to be converted from PDF using a tool such as pdftotext. Under the Debian/Ubuntu package ecosystem, this can be done with apt install poppler
, followed by
find . -name "*.pdf" -execdir pdftotext {} {}.txt \;
cat $(find . -name "*.txt") > icos_all.txt
Crontab-based tweeting requirements: