recentpopularlog in


« earlier   
Markov Chain Text Generation « The blog at the bottom of the sea
This post includes a standalone (only standard headers, no external libs) ~400 line C++ source file that can analyze text and use an order N Markov chain to randomly generate new text in the same style. The Markov code itself is fairly generic / re-usable and a template parameter to the class lets you specify the order of the chain as well as the type of state data to use. That code is on github at:
text-generation  HN  markovchain 
13 days ago by 1luke2

Copy this bookmark:

to read