JAWS wordnet similarity

时光毁灭记忆、已成空白 提交于 2019-12-12 00:29:25

问题


I use JAWS for normal wordnet to find similarity between words.

I installed wordnet 2.1 and I added the jar file : edu.mit.jwi_2.1.4.jar and edu.sussex.nlp.jws.beta.11.jar and I copier the WordNet-2.1-InfoContent in D: \ Program Files \ WordNet \ 2.1 but i have this problem when i run my application

Loading modules
set up:
... finding noun and verb <roots>
... calculating IC <roots> ...
... ICFinder
java.io.FileNotFoundException: D:\Program Files\WordNet\2.1\WordNet-InfoContent-2.1 (Access Denied)
        at java.io.FileInputStream.open(Native Method)
... DepthFinder
at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at java.io.FileReader.<init>(FileReader.java:41)
        at edu.sussex.nlp.jws.ICFinder.setup(ICFinder.java:135)
        at edu.sussex.nlp.jws.ICFinder.<init>(ICFinder.java:44)
        at edu.sussex.nlp.jws.JWS.<init>(JWS.java:76).

please help and thank you.


回答1:


I am not sure if JAWS can be used to measure similarity between the words.




回答2:


Download wordnet from http://wordnet.princeton.edu/wordnet/download/current-version/

Put it's contents in this directory: C:\Program Files\WordNet\2.1\

Added the jar file: edu.mit.jwi_2.1.4.jar and edu.sussex.nlp.jws.beta.11.jar.

Downloaded this file? http://www.d.umn.edu/~tpederse/Data/WordNet-InfoContent-2.1.tar.gz

Extract it and copy into C:\Program Files\WordNet\2.1 (ie inside 2.1 folder)



来源:https://stackoverflow.com/questions/11217499/jaws-wordnet-similarity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!