NLTK, Random Sentence Generators?

mensanator at aol.com mensanator at aol.com
Tue Apr 10 16:13:27 EDT 2007


On Apr 10, 1:59 pm, Paulo da Silva <psdasil... at esotericaX.ptX> wrote:
> gene tani escreveu:
>
> > On Apr 10, 1:36 am, Passer By <sen... at sender.send> wrote:
> >> Has any created or not of examples of random sentence generators using
> >> n-gram models (or other models might be interesting).
>
> >> I know of one example from a course at MIT, but besides that nothing.
>
> >> Any help would be great.
>
> > Markov chains e.g.
> >http://rubyquiz.com/quiz74.html
>
> Seems interesting ... Is there anybody who masters both python and ruby
> to "translate" the code into python?

Wouldn't it be easier to translate Python:

<http://www.strout.net/python/shaney.py>




More information about the Python-list mailing list