Comments (5)
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.
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.
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.
I think this was fixed a while ago. I can't reproduce it now. So closing this issue.
from corenlp.
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)
- english.all.3class.distsim.crf.ser.gz ???? HOT 1
- Training Shift Reduce Parser HOT 1
- German Lemma not working? HOT 10
- Wrong POS for "keine": PRON instead of DET HOT 7
- Support HOT 2
- Is downloads.cs.stanford.edu down? HOT 3
- Arabic Processing data HOT 2
- VBN vs VBD in the input files from PTB
- Is https://corenlp.run down? HOT 1
- Local Server Run Fails Due to Main Website Outage HOT 3
- Cannot instantiate a StanfordCoreNLP pipeline in a Springboot Project using Maven HOT 4
- I use this command, but the word-cut results are same to space-split. Thank you very much.
- Unable to install CoreNLP software HOT 7
- KBA appears to miss per:child when separated by location
- edu.stanford.nlp.pipeline.StanfordCoreNLP HOT 1
- Unable to extract triplets HOT 3
- downloadCoreNLP() timeout HOT 2
- TokensRegex cannot detect rules cross special symbols, eg. '.' or ','
- Unable to open "/home/john/extern_data/corenlp-segmenter/dict-chris6.ser.gz" HOT 7
- Creating a Dockerfile for CoreNLP HOT 1
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 corenlp.