3 ms·
This is lovely, is the source available somewhere so we can apply this to our own body of text?
by revelation 12y ago
This is lovely, is the source available somewhere so we can apply this to our own body of text?
- danbrink 12y agoI wrote something using markov chains similar here: https://github.com/DanBrink91/Anime-Namer https://github.com/DanBrink91/Anime-Namer you could probably adjust it to your own stuff easily enough.
- deleted 12y ago[deleted]
- gburt 12y agoMy PHP learning library has an example case[0] that uses Markov chains to do the same thing. [0] https://github.com/gburtini/Learning-Library-for-PHP/blob/master/applications/text_generator.php https://github.com/gburtini/Learning-Library-for-PHP/blob/ma...
- jlarocco 12y agoI'm also curious. I wrote a Markov text generator in Lisp a few months ago (https://github.com/jl2/markov https://github.com/jl2/markov), and had fun generating text using some old sci-fi books from Project Gutenberg and some documentation we use at work (Fiber Channel and ISCSI specs), but the sentences mine generated weren't as coherent as these. I'm curious if this is generating thousands of sentences and only posting the best, if it used the basic algorithm and a ton of sample text, or if it's using a more advanced algorithm. I was planning on making mine use parts of speech to help avoid some of the nonsense sentences, but never got around to it. And it would be harder to find source text to feed into it.
- brananaphone 12y agoIt's a fairly trivial markov chain text generator that I manually scan for good results. To make it easier, I've got it colorizing output based on the source corpus, so I can see where there's crossover. Then I just generate a wall of text and look for gems where the colors change. It's an incredibly unsophisticated process
- brananaphone 12y agoI'm using the program written by the creator of the King James Programming tumblr. The source is at https://github.com/barrucadu/markov https://github.com/barrucadu/markov