以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 Semantic Web(语义Web)/描述逻辑/本体 』  (http://bbs.xml.org.cn/list.asp?boardid=2)
----  Do somebody knows how to use JWNL?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=2&rootid=&id=14978)


--  作者:saleemlz
--  发布时间:3/2/2005 7:31:00 PM

--  Do somebody knows how to use JWNL?
(1)、what's JWNL?
JWNL is an API for accessing WordNet-style relational dictionaries. It also provides functionality beyond data access, such as relationship discovery and morphological processing.

(2)、ask for help:
i can not use it.When i use the "Examples.java",something is wrong :

java.lang.NumberFormatException: NUMBER_OF_VERB_FRAMES
at java.lang.Integer.parseInt(Integer.java:426)
at java.lang.Integer.parseInt(Integer.java:476)
at net.didion.jwnl.data.VerbFrame.initialize(Unknown Source)
at net.didion.jwnl.JWNL.initialize(Unknown Source)

Even if I use only the Examples.java and give as a input parameter file_properties.xml or map_properties.xml

I get these errors:

net.didion.jwnl.JWNLException: Unable to install net.didion.jwnl.dictionary.MapBackedDictionary

at net.didion.jwnl.util.factory.Element.install(Unknown Source)

at net.didion.jwnl.JWNL.initialize(Unknown Source)

at wnginy.Examples.main(Examples.java:45)

Caused by: net.didion.jwnl.JWNLException: Could not open dictionary files

at net.didion.jwnl.dictionary.MapBackedDictionary.(Unknown Source)

at net.didion.jwnl.dictionary.MapBackedDictionary.install(Unknown Source)

at net.didion.jwnl.dictionary.MapBackedDictionary.install(Unknown Source)

... 3 more


(3)、if somebody has been using it,please tell me how to deal with it.Thanks very much.


--  作者:saleemlz
--  发布时间:3/2/2005 8:00:00 PM

--  
oh,i have got it.

when we use JWNL,we should add the jwnl.jar、commons-loggings.jar、utilities.jar to the classpath.


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
46.875ms