Giter Site home page Giter Site logo

Build failure due to test errors about book HOT 4 OPEN

tamingtext avatar tamingtext commented on July 29, 2024
Build failure due to test errors

from book.

Comments (4)

antxa avatar antxa commented on July 29, 2024 1

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.

david-in-perth avatar david-in-perth commented on July 29, 2024

I got failures on the same tests.
Running Windows 7 64-bit, JDK 1.8.*, Maven 3.2.3

from book.

MrXemiu avatar MrXemiu commented on July 29, 2024

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.

MrXemiu avatar MrXemiu commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.