Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate "WordNet Domains" into WordNet DB?

I am using WordNet 2.1 tool and accessing it pro-grammatically via JAWS(Java API for WordNet Searching).

Today I came across this new thing called WordNet Domains which has assigned DOMAIN labels to each word in WordNet.

link:- http://wndomains.fbk.eu/labels.html

I have downloaded the same from above link. Its a zip file.

My question is:- How do I use "WordNet Domains" along with "WordNet" in Java?

like image 378
variable Avatar asked Oct 27 '12 10:10

variable


2 Answers

Since you are using java, you can load the labels as a HashMap<String, List<String>>.

From personal experience, I would say instead of using Domain Labels, you can use values for the domains : Extended WordNet Domains project (http://adimen.si.ehu.es/web/XWND) on WordNet 3.0.

like image 167
damned Avatar answered Nov 10 '22 22:11

damned


Th answer is: The WNDomains project comes with a doc file that supplies the wordID and word domain. This wordID is the wordnet 2.1 wordID. So in java you can write a program thats maps the corresponding ID by mapping (reading doc file line by line)

like image 38
variable Avatar answered Nov 10 '22 22:11

variable