HALImprover,
Check this Medeksza posting:
http://www.zabaware.com/forum/topic.asp?TOPIC_ID=734Example use:
List_Of_Sisters = ""
WN.LookUpWord("horse") 'This points WN to your word "horse".
List_Of_Sisters = WN.GetSisters("NOUN", 1) 'Get sisters in the first sense of the noun "horse". "1" denotes the WN entry sense.
Similarly:
List_Of_Synonyms = ""
WN.LookUpWord("horse") 'This points WN to your word "horse".
List_Of_GetSynonyms = WN.GetSynonyms("NOUN", 1)
etc:
as before...
List_Of_Meronyms = WN.GetMeronyms(1)
as before...
The WN.LookUpWord("WORD") statement must precede any inquiry. You only need to do this once before making as many inquiries as you like.
VERY IMPORTANT NEWS HOT OFF THE DESIGN TABLE!!!
I'm finishing development on a new eXtended Topic Focus (XTF) brain. It is my biggest script yet. Over 400 lines of new Hal "stuff". This brain uses WordNet extensively. HOWEVER, I think I have found a really bad bug. Hal occasionally crashes or screws up. I think I have traced this to the WN.GetSisters() function.
Perform this Test #1 to verify my findings:
1) Start Hal up.
2) At the start up screen open the menu and select "Lexical Dictionary".
3) Type the word "life" in (without the quotes).
4) Click on "Get Sisters".
5) On my system Hal crashes at this point.
Test #2:
1) Start Hal up.
2) At the start up screen open the menu and select "Lexical Dictionary".
3) Type the word "ghost" in (without the quotes).
4) Click on "Get Sisters".
5) On my system I get a dialog box that says,"Run-time error '-2147417848 (80010108)': Method '~' of object '~' failed. Usually Hal crashes at this point as well.
I'll make a separate posting about this possible bug.
Good luck. If your system fails as above then avoid any use of the WN.GetSisters function.
==vonsmith==