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.
Page Index Toggle Pages: 1
RiTa Library (Read 2550 times)
RiTa Library
Mar 15th, 2008, 9:05pm
 
greetings all,

finally posting an alpha version of the RiTa core library,  a set of objects for various kinds of generative text stuff (n-grams, grammars, feature-extraction [pos, phonemes, syllables, stress], concordances, KWIC-models, text-to-speech, etc.) and also some (minimal) animation & sound support for text objects... should integrate easily w' the (previously released) RiTa.Wordnet library as well...

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

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

cheers,
-dch
Re: RiTa Library
Reply #1 - Mar 20th, 2008, 12:11am
 
I can't get this example to work:

http://www.rednoise.org/rita/examples/VariousHyponyms/VariousHyponyms.pde

I get a NullPointerException on results after the call to wordnet.getHyponyms().  If I comment out that section, I get a NullPointerException on results after wordnet.getAllHyponyms().  If I comment out *that* section, there are still problems: the calls to getHyponyms() with an ID seem to be returning null, since nothing gets printed out after the numbers, and the section beneath "getHyponymTree(id)" is completely blank...

Could this be a problem with my installation?  Calls to wordnet.exists("cat") return true, and wordnet.getRandomWord("n") seems to work fine as well.  I'm using Processing 0135 on an Intel Mac running OS X 10.4.
Re: RiTa Library
Reply #2 - Mar 20th, 2008, 5:38am
 
Should be fixed in v19, give it a try... -dch
Re: RiTa Library
Reply #3 - Mar 21st, 2008, 1:30am
 
Works fine now, thanks!
Re: RiTa Library
Reply #4 - Mar 22nd, 2008, 11:58pm
 
Okay, one more problem... the get{All,}Hypernyms() method(s) seem to be skipping hypernym terms with whitespace in them, e.g., getAllHypernyms("goblin", "n") returns null, while wn "goblin" -hypen on the command-line returns a whole tree up to "entity," the first hypernym of which is "evil spirit."

Another example: getAllHypernyms("extremity", "n") returns "adversity," "hardship," "ultimacy," "ultimateness," "region," and "part"; the command-line tool returns all these, but also returns "external body part" (which is missing from the rita results).

Any ideas?
Re: RiTa Library
Reply #5 - Mar 23rd, 2008, 1:57am
 
thats the default behavior -- if you want to see those (what i refer to as compound words), you can use:

 myWordnet.ignoreCompoundWords(false);

-dch
Re: RiTa Library
Reply #6 - Mar 2nd, 2009, 3:43pm
 
could the fact that the models folder isn't recognized be related to the new version of processing 1.02 and it's library folder placement?

i've also tried to run the GrammarConjugator example and I get the error message - "cannot find a class or type named RiConjugator"

it would be so nice to figure this out!

thanks for any help.
j
Re: RiTa Library
Reply #7 - Mar 2nd, 2009, 4:07pm
 
That's all been tested pretty thoroughly with the most recent Processing. Sounds to me like you might be using an older version of RiTa? Current is v73.
cheers,
-dch
Re: RiTa Library
Reply #8 - Mar 2nd, 2009, 4:26pm
 
thanks for your response and yes i had an old version. so RiCojugate now works!

however it still can't find the models folder even using RiTa.setModelDir().

do i need to uncompress the files in the chunker, parser and tagger subfolders?

it still says "Unable to create parser Parser instance! Have you downloaded the statistical models from the RiTa site?"

thanks for your help
Re: RiTa Library
Reply #9 - Mar 5th, 2009, 3:07am
 
If you post your project (or send me a screenshot), I'm happy to take a further look, but I can't recreate the problem whatsoever... Perhaps this screenshot will help you (my setup as I run a test program from the desktop)?

 http://www.rednoise.org/rita/imgs/RiParserTest.jpg

cheers,
-dch


Re: RiTa Library
Reply #10 - Mar 5th, 2009, 6:17am
 
thanks for the screenshot. in fact it was because the models are in subfolders (chunker, parser, tagger) and you need to move them into the main models folder. but now it finds everything.

thanks again for your help.
j
Page Index Toggle Pages: 1