1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

Anyone else have wordnet troubles?

Posted by Mark on Mar 11, 2007

I'm a little new to NodeBox, so I appologize if I've overlooked something simple, but I can't seem to get the wordnet library to work. I have wordnet 2.1 installed and all the regular wn tools work by themselves. It is my understanding the pyWordNet doesn't work with wordnet 2.1, yet the note under wordnet2 indicates 'Incorporates Wordnet 2.1' while being a wrapper for pyWordNet.

Is this supposed to work with wn 2.1? Are others using this without issues?



Posted by Tom De Smedt on Mar 12, 2007

Hi Mark,

The wordnet2.zip download contains everything you need, pywordnet as well as wordnet2.1.

Make a new script in the same folder and try:

wordnet = ximport("wordnet")
print wordnet.gloss("library")


NodeBox should print out the WordNet description for "library". Let me know if that works for you.



Posted by Mark on Mar 12, 2007

Well, I have no idea what I was doing wrong, but this works--I must have had stuff in the wrong place. Thanks. In the process of finding something else to incorporate wordnet I came accross NLTK which is pretty neat and incorporates a lot of pywordnet. So I guess that's worth the little frustration I was causing myself.