I am far to stupid to get the stanford-parser.jar
into my build path. Is there a way to obtain just the needed model file englishPCFG.ser.gz
on its own, and then to LexicalizedParser.loadModel("/absolute/path/englishPCFG.ser.gz");
?
Yes, this is easy. A jar file is just a glorified zip file. So using either the jar command or your favorite unzipper, do something like:
unzip stanford-corenlp-3.7.0-models.jar
mv edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz .
rm -rf edu
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With