Created
November 22, 2016 23:50
-
-
Save terbo/92c93b58a855434ede479d7442097953 to your computer and use it in GitHub Desktop.
Quick Markov chain from the command line using python/markovify
This file contains hidden or 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
#!/usr/bin/env python | |
import sys,markovify | |
try: print markovify.Text(open(sys.argv[1]).read()).make_short_sentence(60) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment