Constannnnnt / Distributed-CoreNLP

This infrastructure, built on Stanford CoreNLP, MapReduce and Spark with Java, aims at processing documents annotations at large scale.
https://github.com/Constannnnnt/Distributed-CoreNLP
MIT License
0 stars 0 forks source link

Use the Shift-Reduce Parser #16

Open KaisongHuang opened 5 years ago

KaisongHuang commented 5 years ago

I haven't figured out which is the default model that corenlp uses to parse sentences. I tried to explicitly call the following method to use englishSR which corenlp says has better performance:

// use faster shift reduce parser
props.setProperty("parse.model", "edu/stanford/nlp/models/srparser/englishSR.ser.gz");

And I got the following error:

edu.stanford.nlp.io.RuntimeIOException: java.io.IOException: Unable to open "edu/stanford/nlp/models/srparser/englishSR.ser.gz" as class path, filename or URL

I just commented the above line for now and maybe we can work on it later.

Constannnnnt commented 5 years ago

Not sure.