Re:Generating domain names using Markov Chains
by ntoshev on Monday October 20, 2008 @05:04AM
(#337712)
Funny I did a similar thing recently, specifically for domain names. The code to train a Markov chain (without using any libraries outside standard Python) is this:
Then, I tried to measure how "good" a particular word is (experimenting with different measures):
Then, tried to find the top N words at less than 2 edits distance:
I have borrowed some code from Peter Norvig's spelling checker, and the style is very much influenced by it.
[ Parent
| on HN ]
There are no comments on this comment yet.