Mistake on your examples pages
I didn't know where else to send this, but just to let you guys know ... the following definitions/examples of holonyms and meronyms have been mistakenly reversed on the the following pages: http://nodebox.net/code/index.php/Linguistics
http://nodebox.net/code/index.php/WordNet
Meronyms are actually the components, and holonyms are the "collections". You can verify it here.
http://wordnetweb.princeton.edu/perl/webwn?o2=&o0=1&o8=1&o1=1&o7=&o5=&o9=&o6=&o3=&o4=&s=computer&i=2&h=100000000#c
The noun_holonym() command returns components of the given word:
print wordnet.noun_holonym("computer")
>>> [['busbar', 'bus'], ['cathode-ray tube', 'CRT'],
>>> ['central processing unit', 'CPU', 'C.P.U.', 'central processor',
>>> 'processor', 'mainframe'] ...
The noun_meronym() command returns the collection in which the given word can be found:
print wordnet.noun_meronym("tree")
>>> [['forest', 'wood', 'woods']]
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by tomdesmedt on 04 Dec, 2013 12:44 AM
I am aware of this, but probably won't fix it, because the library has been around for so long that many projects might depend on this incorrect interpretation.
You should have a look at Pattern, which is a complete tidy-up of this library, and also deals with many, many other text analytics tasks:
http://www.clips.ua.ac.be/pattern
Best,
Tom