Clearing PHP Markov Chain output?

This is my first experience with Markov chains.

I want to combine the two sources of text and get a readable Markov chain. The implementation that I use here is text sources without markup, etc.

I was first open to Markov targets using the Ruby Rbot IRC bot. Their source for the Markov plugin is here .

I find that using the Markov algorithm of the PHP algorithm is useless. One thing I can see is that the rbot implementation combines two words to start with. Is there an explicit way to do this with the PHP implementation I'm linked to? If not, is there a PHP implementation that can do this?

+4
source share
1 answer

Do you want to make a string of words or a string of letters? The above PHP implementation performs alphanumeric coding, which will tend to be gibberish, and not just words that seem out of place at low order values. Rbot seems to be making a string of words that implicitly generates more β€œreadable” text.

Markov chain is quite simple to implement. I don’t think it would be too difficult to adapt the PHP source to a break and a string of words instead of a letter. I was thinking of creating a clean sql stored procedure that can take a table and generate a row.

+3
source

All Articles