New bug fix

News about WordNet.Net.

New bug fix

Postby ebswift » Thu Mar 05, 2009 12:17 am

I have just uploaded a new bug fix suggested by Scott Zhang. If possible, can other members verify if this causes any side effects? It seems like a reasonable fix to me. Here is the quoted report below:

When user input a keywords eg. "designer", we could search for "design" too.
I tried native C version of wordnet. And I can see when I input "designer", by specify the point_type = "NOMINALIZATIONS", we should get words "RELATED TO". So it is working then I could get "design" from input "designer".
But the problem is when I use your version (I got lastest version from svn yesterday.) I can't see "Related to" in the search.buf. Others seems ok. I viewed your code. And get confirmed you have wrote the code for "related to". But the code never go that that area.

This morning, I was carefully comparing your code with the original wordnet source code. And need code to catch why it didn't work. At last, I found the problem is, when you parse "+", which should be "NOMINALIZATIONS", value (20).

check http://wordnet.princeton.edu/man/wnsearch.3WN
DERIVATION 20 + Derivationally related form
FRAMES 25 n/a Verb example sentences and generic frames


But in your code, you give 25 the "+" too. which should be "".
After change "new PointerType("+", "FRAMES", "Sample Sentences"); // 25" to "new PointerType("", "FRAMES", "Sample Sentences"); // 25".
The problem solved.
~Troy
ebswift
Site Admin
 
Posts: 90
Joined: Tue Jun 07, 2005 12:41 am
Location: Queensland, Australia

Return to News

Who is online

Users browsing this forum: No registered users and 1 guest

cron