Comments (3)
Are you using the latest models?
If so, what query are you using that causes it to crash?
On Sun, Dec 7, 2014 at 8:40 AM, techscrub [email protected] wrote:
I'm very excited about the new SR parser, and I'm trying to drop it into a
StanfordCoreNLP pipeline, but it's throwing an NPE when it gets to
ShiftReduceParserQuery. The same code works with the PCFG parser, and I'm
using version 3.5.0. The only properties I'm applying are:props.put("annotators", "tokenize, ssplit, pos, lemma, ner, parse, dcoref");
props.put("parse.model", "edu/stanford/nlp/models/srparser/englishSR.ser.gz");
pipeline = new StanfordCoreNLP(props);The stack trace leads to line 72 in the ShiftReduceParserQuery class:
Collection<ScoredObject> predictedTransitions = parser.model.findHighestScoringTransitions(state, true, maxBeamSize, constraints);
I confirmed that parser.model is null here, even though the output says
the model loads successfully. The relevant part of the output is below.Adding annotator parse
Loading parser from serialized file edu/stanford/nlp/models/srparser/englishSR.ser.gz ...done [11.8 sec].
Adding annotator dcoref
java.lang.NullPointerException
at edu.stanford.nlp.parser.shiftreduce.ShiftReduceParserQuery.parseInternal(ShiftReduceParserQuery.java:72)
at edu.stanford.nlp.parser.shiftreduce.ShiftReduceParserQuery.parse(ShiftReduceParserQuery.java:47)
at edu.stanford.nlp.pipeline.ParserAnnotator.doOneSentence(ParserAnnotator.java:263)
at edu.stanford.nlp.pipeline.ParserAnnotator.doOneSentence(ParserAnnotator.java:215)
at edu.stanford.nlp.pipeline.SentenceAnnotator.annotate(SentenceAnnotator.java:95)
at edu.stanford.nlp.pipeline.AnnotationPipeline.annotate(AnnotationPipeline.java:68)
at edu.stanford.nlp.pipeline.StanfordCoreNLP.annotate(StanfordCoreNLP.java:408)—
Reply to this email directly or view it on GitHub
#42.
from corenlp.
I didn't realize the SR models had changed from 3.4 to 3.5. I put in the new models and it works perfectly. I really can't thank you enough for the help, and for creating the SR parser. I have an enormous amount of text to crunch, and the performance gain from the SR parser is a game changer.
from corenlp.
Thanks! Great that you like it!
from corenlp.
Related Issues (20)
- Can't use retrained sentiment analysis model on Eclipse HOT 1
- an info shows "INFO CoreNLP - CoreNLP Server is shutting down." HOT 4
- WSD issues resulting in bad lemmatization/PoS tag sequence HOT 8
- for ner type - DATE, normalizedNER is not coming in appropriate format. HOT 1
- Passing current datetime to sutime through corenlp server? HOT 7
- Question about constituency score HOT 8
- CoreNLP converter produces invalid CoNLL
- corenlp.run seems to be down HOT 3
- German Morphology HOT 10
- HTML Interface not Reflecting `quote` Annotator Specified in Properties File HOT 1
- new requirement in parsers HOT 2
- TokensRegex cannot detect rules cross the period '.' HOT 10
- Online demo is down HOT 7
- Compile error, 'tree' can't be resolved...can't figure out what's going on! HOT 11
- com.apple.eawt.Application can not be resolved to a type (in class OSXAdapter) HOT 5
- Demo Website Issue HOT 2
- An exception occurred: Expecting value: line 1 column 1 (char 0) HOT 1
- IntervalTree#remove null pointer exception HOT 4
- i am getting a lock screen bug HOT 3
- Upgrade Apache Lucene to resolve vulnerability for consumers HOT 8
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.