We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProcessing DevelopmentLibraries,  Tool Development › Wordnet (RiTa) library
Pages: 1 2 
Wordnet (RiTa) library (Read 6559 times)
Wordnet (RiTa) library
Jan 18th, 2008, 6:41pm
 
greetings all,

posting up the first of several natural-language related libraries (thinking the batch will be called 'rita')... this 1st provides access to wordnet (primarily via jwnl).

download, docs and examples here: http://www.rednoise.org/rita/wordnet/.

thoughts/suggestions/feedback much appreciated (dhowe@mrl.nyu.edu)

cheers,
-dch
Re: Wordnet (RiTa) library
Reply #1 - Jan 18th, 2008, 9:26pm
 
very cool!
Re: Wordnet (RiTa) library
Reply #2 - Jan 21st, 2008, 4:47pm
 
cool, i've been looking for something like this. can't wait to try it!
Re: Wordnet (RiTa) library
Reply #3 - Jan 21st, 2008, 7:34pm
 
Awesome. I've been looking for something just like this.
Re: Wordnet (RiTa) library
Reply #4 - Jan 22nd, 2008, 3:03pm
 
This library is awesome,
I have already managed to connect it to freeTTS java speech synthetiser..

Processing now can do a poetry
..still just quite absurd one :)

great work!
kof
Re: Wordnet (RiTa) library
Reply #5 - Jan 22nd, 2008, 6:41pm
 
I've been playing around with the library and I'm not sure I fully get what the "posStr" string is. Does it just represent the type of word, i.e. verb, noun, adjective, or adverb, or does it also have another function? Also, I figured that "v" is verb, and "n" is noun, but how do you query for an adjective or adverb?

Thanks!
Re: Wordnet (RiTa) library
Reply #6 - Jan 24th, 2008, 5:46am
 
I've added some better docs on the parts-of-speech,
but your options are:

  noun="n", verb="v", adj="a", adverb="r"

you can also use the constants provided:

 RiWordnet.NOUN
 RiWordnet.VERB
 RiWordnet.ADJ
 RiWordnet.ADV

cheers,
-dch
Re: Wordnet (RiTa) library
Reply #7 - Jan 25th, 2008, 12:20am
 
I'm excited to see your library as I am presently working out force-directed graphing of the WordNet along with a ZUI (zoomable user interface). Most of the bits and pieces seem to be laying around. Is anyone else working on this in Processing? Suggestions?
Re: Wordnet (RiTa) library
Reply #8 - Feb 5th, 2008, 10:48pm
 
Does the library also provide a way to "tag" words in a sentence as NOUNs, VERBs, ADJs, or ADVs? Or does this have to be done independently?
Re: Wordnet (RiTa) library
Reply #9 - Feb 6th, 2008, 8:47pm
 
That functionality (pos-tagging) is part of the core RiTa library -> http://rednoise.org/rita/
cheers,
-dch
Re: Wordnet (RiTa) library
Reply #10 - Jan 30th, 2009, 10:04am
 
hi all,

I already have using rita library but I have a problem in method
getAllCoordinates ( int )

can somebody help me with any examples of using this method ,
the exception NullException some times appear with this method,,

Mayada
Re: Wordnet (RiTa) library
Reply #11 - Feb 1st, 2009, 8:41pm
 
thanks -- this bug is fixed as of v22:

 http://www.rednoise.org/rita/wordnet/

cheers,
-dch
Re: Wordnet (RiTa) library
Reply #12 - Feb 27th, 2009, 2:23pm
 
wow this looks excellent!
are there any plans to integrate other natural languages, French for example?
j
Re: Wordnet (RiTa) library
Reply #13 - Feb 27th, 2009, 3:02pm
 
i can't seem to figure out where to put the rita statistical models. any clues? in the RIParser class doc there is the following note -

"Note: to use this object, first download the rita statistical models (rita.me.models.zip) and unpack them into the 'rita' directory in your processing sketchbook. You can also specify an alternative directory (an absolute path) for the models via RiTa.setModelDir();"

seems like there have been some recent modifications to Rita but the documentation isn't totally up to date.

any help would be appreciated.
j
Re: Wordnet (RiTa) library
Reply #14 - Feb 27th, 2009, 9:10pm
 
This is really related to RiTa (http://rednoise.org/rita) rather than RiTa.Wordnet, but in any case, both of the documented methods work OK for me from within Processing (see below):

 String s = "The black cat crossed my path.";
 RiParser parser = new RiParser(this);
 String result = parser.parse(s);
 System.out.println(result);

 output: (top (s (np (dt The) (jj black) (nn cat))
            (vp (vbd crossed) (np (prp$ my) (nn path)))))

As per the docs, you need to place the 'models' folder inside $SKETCH_PAD/libraries/rita/, or place it wherever you like and start with the line:

 RiTa.setModelDir("/path/to/models/");

cheers,
-dch
Pages: 1 2