[Tutor] Fwd: thesaurus

Pete Froslie froslie at gmail.com
Thu Jul 9 02:54:01 CEST 2009


---------- Forwarded message ----------
From: Pete Froslie <froslie at gmail.com>
Date: Wed, Jul 8, 2009 at 8:53 PM
Subject: Re: [Tutor] thesaurus
To: Robert Berman <bermanrl at cfl.rr.com>


Thanks Robert,

I will try this out.. at the moment I'm playing with an API from '
http://words.bighugelabs.com/'. It works and pulls the synonyms into python.
It cost money if you want to process more than 10,000 in a day though.

I do have another pretty noob question that I'm figuring out -- once I have
a list of synonyms returned, is there a simple way to replace the words I
looked up inside of the 'txt' file?

For instance, I open and read the 'txt' file, grab the first word, search it
with the thesaurus, get the result, write the result back to the file, and
then grab the next word to repeat the process. It seems like there is
probably a quick shortcut for this..

thanks so much




On Wed, Jul 8, 2009 at 8:25 PM, Robert Berman <bermanrl at cfl.rr.com> wrote:

> http://pywordnet.sourceforge.net/
>
> This will get you started. This is a tad easier to play with than its
> newer implementation. Read and experiment. it may meet most of your
> needs in this arena.
>
> Good Luck,
>
> Robert
>
>
>
> On Wed, 2009-07-08 at 18:28 -0400, Pete Froslie wrote:
> > okay.. I'm getting the hang of python a little more. I'd like to try
> > something a bit more complicated (for me). I would like to convert
> > each word in a series of paragraphs to its first matching synonym in a
> > thesaurus. I'm a bit stuck as how to start.. I think I understand how
> > to split and parse the original paragraphs, but the thesaurus is
> > throwing me. I'm thinking maybe find a CSV thesaurus -or- a thesaurus
> > online with an API.. I'm wondering if anyone has done something
> > similar that may point me in the correct direction?
> >
> >
> > thanks,
> >
> > --
> > Pete F
> > _______________________________________________
> > Tutor maillist  -  Tutor at python.org
> > http://mail.python.org/mailman/listinfo/tutor
>
>


-- 
Pete Froslie
617.314.0957
http://www.froslie.net




-- 
Pete Froslie
617.314.0957
http://www.froslie.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090708/d87710ea/attachment.htm>


More information about the Tutor mailing list