Comments (1)
C:\Program Files\Java\jdk1.6.0_43\bin>java SimilarityCalculationDemo
java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:418)
at java.util.Properties.load0(Properties.java:337)
at java.util.Properties.load(Properties.java:325)
at edu.cmu.lti.ws4j.util.WS4JConfiguration.<init>(WS4JConfiguration.java
:30)
at edu.cmu.lti.ws4j.util.WS4JConfiguration.<clinit>(WS4JConfiguration.ja
va:10)
at edu.cmu.lti.lexical_db.NictWordNet.<clinit>(NictWordNet.java:28)
at SimilarityCalculationDemo.<clinit>(SimilarityCalculationDemo.java:18)
java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:418)
at java.util.Properties.load0(Properties.java:337)
at java.util.Properties.load(Properties.java:325)
at edu.cmu.lti.jawjaw.util.Configuration.<init>(Configuration.java:40)
at edu.cmu.lti.jawjaw.util.Configuration.<clinit>(Configuration.java:23)
at edu.cmu.lti.jawjaw.db.WordDAO.<clinit>(WordDAO.java:42)
at edu.cmu.lti.jawjaw.util.WordNetUtil.wordToSynsets(WordNetUtil.java:38
)
at edu.cmu.lti.lexical_db.NictWordNet.getAllConcepts(NictWordNet.java:38
)
at edu.cmu.lti.ws4j.util.WordSimilarityCalculator.calcRelatednessOfWords
(WordSimilarityCalculator.java:79)
at edu.cmu.lti.ws4j.RelatednessCalculator.calcRelatednessOfWords(Related
nessCalculator.java:61)
at SimilarityCalculationDemo.run(SimilarityCalculationDemo.java:27)
at SimilarityCalculationDemo.main(SimilarityCalculationDemo.java:33)
java.lang.ClassNotFoundException: org.sqlite.JDBC
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:171)
at edu.cmu.lti.jawjaw.db.SQL.createSQLConnection(SQL.java:77)
at edu.cmu.lti.jawjaw.db.SQL.<init>(SQL.java:55)
at edu.cmu.lti.jawjaw.db.SQL.<clinit>(SQL.java:45)
at edu.cmu.lti.jawjaw.db.WordDAO.findWordsByLemmaAndPos(WordDAO.java:124
)
at edu.cmu.lti.jawjaw.util.WordNetUtil.wordToSynsets(WordNetUtil.java:38
)
at edu.cmu.lti.lexical_db.NictWordNet.getAllConcepts(NictWordNet.java:38
)
at edu.cmu.lti.ws4j.util.WordSimilarityCalculator.calcRelatednessOfWords
(WordSimilarityCalculator.java:79)
at edu.cmu.lti.ws4j.RelatednessCalculator.calcRelatednessOfWords(Related
nessCalculator.java:61)
at SimilarityCalculationDemo.run(SimilarityCalculationDemo.java:27)
at SimilarityCalculationDemo.main(SimilarityCalculationDemo.java:33)
Exception in thread "main" java.lang.NullPointerException
at edu.cmu.lti.jawjaw.db.SQL.getPreparedStatement(SQL.java:217)
at edu.cmu.lti.jawjaw.db.WordDAO.findWordsByLemmaAndPos(WordDAO.java:124
)
at edu.cmu.lti.jawjaw.util.WordNetUtil.wordToSynsets(WordNetUtil.java:38
)
at edu.cmu.lti.lexical_db.NictWordNet.getAllConcepts(NictWordNet.java:38
)
at edu.cmu.lti.ws4j.util.WordSimilarityCalculator.calcRelatednessOfWords
(WordSimilarityCalculator.java:79)
at edu.cmu.lti.ws4j.RelatednessCalculator.calcRelatednessOfWords(Related
nessCalculator.java:61)
at SimilarityCalculationDemo.run(SimilarityCalculationDemo.java:27)
at SimilarityCalculationDemo.main(SimilarityCalculationDemo.java:33)
C:\Program Files\Java\jdk1.6.0_43\bin>
Original comment by [email protected]
on 22 Apr 2013 at 1:58
from ws4j.
Related Issues (20)
- edu.cmu.lti.lexical_db.ILexicalDatabase missing file HOT 3
- While using LIN and two words are the same, the relatedness is extremely high. HOT 2
- Cannot download source with url supplied HOT 1
- problem in compiling DemoServlet.java HOT 2
- Measures with range [0,1] return Double.MAX_VALUE for pairs of identical words. HOT 4
- which Lexical database we use for the builder
- why the values is different from the sit http://ws4jdemo.appspot.com HOT 6
- WordNet compatibility
- Java calculateRelatedness() score differs from ws4j App Demo Score HOT 4
- Maven Central Repository
- Java calculateRelatedness() score differs from ws4j App Demo Score
- Error encountered while trying to use the jar. ILexicalDatabase NoClassDef
- WuPalmer relatedness exceeds 1.0 when MFS false
- Errors in WUP
- A bug in getHypernymTree
- how to include OpenNLP in eclipse project HOT 1
- Which of the following Semantic Similarity criteria is bests
- How to calculate similarity of two compound word using WUP?
- conformity between demo and jar
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ws4j.