Code Monkey home page Code Monkey logo

Comments (5)

AngledLuffa avatar AngledLuffa commented on August 17, 2024

Please give an example text (minimal, if possible)

On Mon, Feb 2, 2015 at 7:02 PM, brendano [email protected] wrote:

I see this a lot when parsing gigaword.

java.lang.NumberFormatException: For input string: "1438143814381434"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:583)
at java.lang.Integer.valueOf(Integer.java:766)
at edu.stanford.nlp.ie.pascal.ISODateInstance.extractDay(ISODateInstance.java:1107)
at edu.stanford.nlp.ie.pascal.ISODateInstance.extractFields(ISODateInstance.java:398)
at edu.stanford.nlp.ie.pascal.ISODateInstance.(ISODateInstance.java:82)
at edu.stanford.nlp.ie.QuantifiableEntityNormalizer.normalizedDateString(QuantifiableEntityNormalizer.java:363)
at edu.stanford.nlp.ie.QuantifiableEntityNormalizer.normalizedDateString(QuantifiableEntityNormalizer.java:338)
at edu.stanford.nlp.ie.QuantifiableEntityNormalizer.processEntity(QuantifiableEntityNormalizer.java:1025)
at edu.stanford.nlp.ie.QuantifiableEntityNormalizer.addNormalizedQuantitiesToEntities(QuantifiableEntityNormalizer.java:1374)
at edu.stanford.nlp.ie.NERClassifierCombiner.classifyWithGlobalInformation(NERClassifierCombiner.java:133)
at edu.stanford.nlp.ie.AbstractSequenceClassifier.classifySentenceWithGlobalInformation(AbstractSequenceClassifier.java:327)
at edu.stanford.nlp.pipeline.NERCombinerAnnotator.doOneSentence(NERCombinerAnnotator.java:148)
at edu.stanford.nlp.pipeline.SentenceAnnotator.annotate(SentenceAnnotator.java:95)
at edu.stanford.nlp.pipeline.NERCombinerAnnotator.annotate(NERCombinerAnnotator.java:137)
at edu.stanford.nlp.pipeline.AnnotationPipeline.annotate(AnnotationPipeline.java:68)
at edu.stanford.nlp.pipeline.StanfordCoreNLP.annotate(StanfordCoreNLP.java:411)


Reply to this email directly or view it on GitHub
#57.

from corenlp.

brendano avatar brendano commented on August 17, 2024

Gigaword version 5, docid AFP_ENG_20020604.0312

ah, it's the line of numbers one of the lines there. i've seen instances of this bug at least a year ago fyi.

"Palm oil prices in ringgit per tonne at the close of trade Tuesday on\nMalaysia's Derivatives Exchange:\n\nAverage prices for     June   July   Aug   Sept  Oct   Nov\n\ncrude palm oil         1450   1452   1450  1450  1450  1440\n\nThe Malaysian crude palm oil market traded higher."

from corenlp.

manning avatar manning commented on August 17, 2024

This make sense. Looks like we're just getting integer overflow. We should fix this. (Longer term, the plan is to get rid of this code, and just use SUTime.

from corenlp.

manning avatar manning commented on August 17, 2024

I think this was fixed a while ago. I can't reproduce it now. So closing this issue.

from corenlp.

demongolem avatar demongolem commented on August 17, 2024

Chris, can you tell which version the fix was applied in? I am using an older version (out of necessity I think it is 3.4.1) and I see the exact same issue for the String "200912031000" (which is supposed to be Dec 3, 2009 at 10:00:00).

from corenlp.

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.