Git Product home page Git Product logo

Comments (4)

MihaiSurdeanu avatar MihaiSurdeanu commented on August 30, 2024

Thanks to your PR, this test now passes. However, others failures showed up in the corenlp subproject. They are all caused by this error:

11:31:34.023 [pool-1-thread-1-ScalaTest-running-TestCoreNLPSentimentAnalyzer] INFO edu.stanford.nlp.parser.lexparser.LexicalizedParser - Loading parser from serialized file edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz ... done [0.1 sec].
[info] - should correctly assign sentiment scores for negative cases *** FAILED ***
[info]   java.lang.NullPointerException:
[info]   at java.util.zip.InflaterInputStream.<init>(InflaterInputStream.java:83)
[info]   at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:77)
[info]   at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:91)
[info]   at org.clulab.processors.shallownlp.ShallowNLPProcessor.mkChunker(ShallowNLPProcessor.scala:84)
[info]   at org.clulab.processors.shallownlp.ShallowNLPProcessor.chunker$lzycompute(ShallowNLPProcessor.scala:53)
[info]   at org.clulab.processors.shallownlp.ShallowNLPProcessor.chunker(ShallowNLPProcessor.scala:53)
[info]   at org.clulab.processors.shallownlp.ShallowNLPProcessor.$anonfun$chunking$1(ShallowNLPProcessor.scala:289)
[info]   at org.clulab.processors.shallownlp.ShallowNLPProcessor.$anonfun$chunking$1$adapted(ShallowNLPProcessor.scala:286)
[info]   at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
[info]   at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
[info]   ...

This error happens because this model:
https://github.com/clulab/processors/blob/balaur-minus-dynet/corenlp/src/main/scala/org/clulab/processors/shallownlp/ShallowNLPProcessor.scala#L82
is no longer available because I removed the dependency to processors-models, which includes it.
Can you please create a new jar file, let's call it corenlp-additional-models, which contains just this model?

Thank you!
Mihai

from processors.

kwalcock avatar kwalcock commented on August 30, 2024

The file is 50MB and would fit on maven and github. Although it is nice to have all the models in the same place (artifactory), it also requires the custom resolver in order to use. Which would you rather have: maven/github or artifactory? It could be github and artifactory. Usually I don't make a github repo just to publish a resource on artifactory.

from processors.

kwalcock avatar kwalcock commented on August 30, 2024

Perhaps even better, the file could be added to the processors-corenlp subproject as a resource and there wouldn't be an external dependency.

from processors.

MihaiSurdeanu avatar MihaiSurdeanu commented on August 30, 2024

from processors.

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.