OscarPrieto / ws4j

Automatically exported from code.google.com/p/ws4j
0 stars 0 forks source link

WordNet compatibility #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've got the error:
java.lang.IndexOutOfBoundsException: Index: 4, Size: 4
this happen when I want to get Synset as the following statement:
Synset synset=WordNetUtil.wordToSynsets("win",POS.v).get(sn);
of course the error because sn is out of bound.
but I already know that sn is less than than the sense count of "win", because 
I got sn from API that interface with wodnet(my API is Rita) that use wordnet 
3.0 but even If I used wordnet 2.1 then I will get the same error.
is there any hint to overcome this problem, OR can I use 
(edu.cmu.lti.jawjaw.util.WordNetUtil) to get the sense number of the word from 
WORDNET.
I will be grateful for any reply...

Original issue reported on code.google.com by saad...@gmail.com on 11 Jun 2014 at 11:54