Comments (4)
Hi,
I'm also getting an error during the test phase for AnswerTypeTest, but for a different reason.
Running com.tamingtext.opennlp.AnswerTypeTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.786 sec <<< FAILURE!
I am using Ubuntu, JDK 1.8 and Maven 3.3.9. But I tried with older Java and Maven versions and I got the same error.
Check the test error log below.
Thanks a lot,
Arantxa
_Test set: com.tamingtext.opennlp.AnswerTypeTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.786 sec <<< FA
ILURE!
demonstrateATCG(com.tamingtext.opennlp.AnswerTypeTest) Time elapsed: 1.686 sec
<<< ERROR!
java.lang.NumberFormatException: For input string: "NUMBER_OF_VERB_FRAMES"
at java.lang.NumberFormatException.forInputString(NumberFormatException.
java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at net.didion.jwnl.data.VerbFrame.initialize(VerbFrame.java:22)
at opennlp.tools.coref.mention.JWNLDictionary.(JWNLDictionary.java
:60)
at com.tamingtext.qa.AnswerTypeContextGenerator.(AnswerTypeContext
Generator.java:58)
at com.tamingtext.opennlp.AnswerTypeTest.demonstrateATCG(AnswerTypeTest.
java:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces_
from book.
I got failures on the same tests.
Running Windows 7 64-bit, JDK 1.8.*, Maven 3.2.3
from book.
I was able to address the errors in com.tamingtext.opennlp.AnswerTypeTest and com.tamingtext.qa.QATest by renaming the index.* files to .idx and data. to *.data in TT_HOME/WordNet-3.0/dict/. For example, data.adj => adj.dat and index.adj => adj.idx.
The issue with com.tamingtext.classifier.bayes.ExtractTrainingDataTest seems to be a permissions issue. In my case it looks like:
java.io.IOException: Failed to set permissions of path: \tmp\hadoop-GChavez\mapred\staging\GChavez-212503113.staging to 0700
I'm still working on solving this one.
from book.
From what I can tell, the issue is the version of Hadoop that Mahout uses. See https://issues.apache.org/jira/browse/HADOOP-7682
TamingText depends on Mahout 0.6, the latest version is 0.11.
I'm a Java noob and I have no idea how to go about trying to update these dependencies. Otherwise, I'd fork this repo, update it, and submit a pull request. If anyone wants to point me to some resources that will educate me, I'd appreciate it. Otherwise I'll keep beating my head against it until I figure it out.
from book.
Related Issues (20)
- UnsupportedOperationException from SplitInput HOT 1
- Use velocity from target/dependencies instead of apache-solr/contrib
- NameFinderTest.removeConflicts(..) guard against empty list. HOT 1
- Book errata HOT 1
- Cannot load SentenceTokenizerFactory class HOT 2
- "mvn clean package" very slow artifact download speeds HOT 2
- Class cast exception while running Solr with answering system HOT 1
- bin/frankenstein.cmd fails - target/dependency not in CLASSPATH
- Lazy loading error - Chapter 3 HOT 2
- windows execution error
- data import command on page 149 does not complete
- readme is not very windows friendly HOT 1
- how to get solr params? HOT 1
- Error: Could not find or load main class com.tamingtext.frankenstein.Frankenstein
- incompelete sentence in answerr
- Unable to search queries which use synonyms.txt
- join to translate English into Indonesian
- making things work with jdk 1.8
- “NoSuchMethodErrors” due to multiple versions of commons-codec:commons-codec: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 book.