cherdt / word-freak

Generate order-n Markov chains from a source text.
MIT License
0 stars 0 forks source link

Allow multiple inputs #3

Open cherdt opened 5 years ago

cherdt commented 5 years ago

I'm thinking of Alice in Elsinore, for example, from the classic Fun With Markov Chains

cherdt commented 5 years ago

This could be done by concatenating files too, e.g.

cat alice hamlet >alice-hamlet
python wordfreq.py alice-hamlet 2