Problem in running GraphVisualizationExample

57 views
Skip to first unread message

Heba

unread,
Apr 4, 2015, 6:42:07 PM4/4/15
to dkpro-w...@googlegroups.com

Hello,

I am trying to run GraphVisualizationExample but I am getting the following exception:

Exception in thread "main" net.sf.extjwnl.JWNLException: Unable to create instance of net.sf.extjwnl.dictionary.FileBackedDictionary: java.lang.NumberFormatException: For input string: "NUMBER_OF_VERB_FRAMES"
    at net.sf.extjwnl.dictionary.Dictionary.getInstance(Dictionary.java:227)
    at net.sf.extjwnl.dictionary.Dictionary.getInstance(Dictionary.java:177)
    at de.tudarmstadt.ukp.dkpro.wsd.si.wordnet.WordNetSenseKeySenseInventory.<init>(WordNetSenseKeySenseInventory.java:49)
    at de.tudarmstadt.ukp.dkpro.wsd.examples.GraphVisualizationExample.main(GraphVisualizationExample.java:68)


I changed the "dictionary_path" parameter in the extjwnl_properties.xml to make it point to my WordNet installation and changed the path of the file in GraphVisualizationExample

The exception is thrown when trying to instantiate WordNetSenseKeySenseInventory
WordNetSenseKeySenseInventory inventory = new WordNetSenseKeySenseInventory(new FileInputStream("path to extjwnl_path file)

Kindly advise.

Thanks a lot,
Heba

Tristan Miller

unread,
Apr 7, 2015, 9:45:27 AM4/7/15
to dkpro-w...@googlegroups.com
Dear Heba,

On 05/04/15 12:42 AM, Heba wrote:
> I am trying to run GraphVisualizationExample but I am getting the
> following exception:
>
> Exception in thread "main" net.sf.extjwnl.JWNLException: Unable to
> create instance of net.sf.extjwnl.dictionary.FileBackedDictionary:
> java.lang.NumberFormatException: For input string: "NUMBER_OF_VERB_FRAMES"

Thanks for the report. I have determined that this problem occurred
after our recent upgrade of the extJWNL library. The most recent
version of extJWNL is incompatible with the DKPro LSR library also used
in the examples module. See the issue report at
<https://code.google.com/p/dkpro-wsd/issues/detail?id=76> for further
details.

I have just committed a fix which rewrites the DKPro LSR-based example
to an extJWNL-based one. Please update your copy of DKPro WSD GPL and
try again -- everything should be working now.

Regards,
Tristan

--
Tristan Miller, Research Scientist
Ubiquitous Knowledge Processing Lab (UKP-TUDA)
Department of Computer Science, Technische Universität Darmstadt
Tel: +49 6151 16 6166 | Web: http://www.ukp.tu-darmstadt.de/

signature.asc

Heba

unread,
Apr 22, 2015, 3:33:52 PM4/22/15
to dkpro-w...@googlegroups.com
Thanks a lot Tristan.

Best,
Heba
Reply all
Reply to author
Forward
0 new messages