Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Implementing a word relationship algorithm (Shannonizer)

by SpritusMaximus (Sexton)
on Aug 07, 2002 at 17:18 UTC ( [id://188392]=perlquestion: print w/replies, xml ) Need Help??

SpritusMaximus has asked for the wisdom of the Perl Monks concerning the following question:

Greetings fellow monks...

Does anyone know of any scripts to implement Dr. Claude Shannon's word relationship algorithm? This is similar to what the Shannonizer does (http://www.nightgarden.com/shanabou.htm). I've found resources that explain the algorithm, but nothing already written.

Thanks, -SM

edited: Tue Aug 13 17:25:56 2002 by jeffa - title change (was: Parser for Gutenberg Library Catalog?

  • Comment on Implementing a word relationship algorithm (Shannonizer)

Replies are listed 'Best First'.
Re: Parser for Gutenberg Library Catalog?
by larsen (Parson) on Aug 07, 2002 at 17:32 UTC
Re: Parser for Gutenberg Library Catalog?
by Cody Pendant (Prior) on Aug 07, 2002 at 22:50 UTC
    There's a similar concept called "Markov Chaining" which creates the same kind of seemingly-logical language. I bet someone's got a Perl script out there. I don't seem to be able to search CPAN at the moment, but there are stacks of hits for "Markov Chaining Perl" when I search Google.
    --
    ($_='jjjuuusssttt annootthheer pppeeerrrlll haaaccckkeer')=~y/a-z//s;print;
      There's a similar concept called "Markov Chaining" which creates the same kind of seemingly-logical language. I bet someone's got a Perl script out there.

      http://www.postcognitive.com/tools/babelize

      At the time I wrote this, I had a boss who used to send out these semi-inspirational emails. We fed a stack of his email into the babelizer, and used it to generate a random web page. It was hysterically funny for about 3 days.

        Have any of my fellow monks done anything using Algorithm::MarkovChain? I installed it off CPAN a couple weeks ago meaning to play with it, but I haven't gotten around to it just yet.

        Once upon a time, I build a Markov Chainer-based object on a MOO and fed it huge passages from Umberto Eco's Foucault's Pendulum. The things it would spew back out were eerie. It almost seemed like it achieved sentience and bacame one of the Secret Masters of the World.

        __________
        He seemed like such a nice guy to his neighbors / Kept to himself and never bothered them with favors
        - Jefferson Airplane, "Assassin"

Re: Parser for Gutenberg Library Catalog?
by SpritusMaximus (Sexton) on Aug 07, 2002 at 17:19 UTC
    Oops, I mistitled that. I've already written a parser for the Gutenberg library index files (GUTINDEX.ALL). Anyone interested in it?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://188392]
Approved by Rex(Wrecks)
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2024-04-23 14:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found