java.io.IOException: Unable to open “edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz” as class path, filename or URL

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via chaoticity.com by Unknown author, 1 year ago
Unable to openedu/stanford/nlp/models/lexparser/englishPCFG.ser.gzas class path, filename or URL
via Stack Overflow by user1568449
, 1 year ago
via GitHub by EmilStenstrom
, 1 year ago
Unable to open "edu/stanford/nlp/pipeline/demo/corenlp-parseviewer.js" as class path, filename or URL
via github.com by Unknown author, 1 year ago
Unable to open \"edu/stanford/nlp/models/pos-tagger/english-left3words/english-left3words-distsim.tagger\" as class path, filename or URL
via Stack Overflow by MrFroll
, 1 year ago
Unable to open "edu/stanford/nlp/models/pos-tagger/english-left3words/english-left3words-distsim.tagger" as class path, filename or URL
java.io.IOException: Unable to open “edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz” as class path, filename or URL
at edu.stanford.nlp.io.IOUtils.getInputStreamFromURLOrClasspathOrFileSystem(IOUtils.java:485)
at edu.stanford.nlp.io.IOUtils.readerFromString(IOUtils.java:622)
at edu.stanford.nlp.parser.lexparser.LexicalizedParser.getParserFromTextFile(LexicalizedParser.java:544)
at edu.stanford.nlp.parser.lexparser.LexicalizedParser.getParserFromFile(LexicalizedParser.java:406)
at edu.stanford.nlp.parser.lexparser.LexicalizedParser.loadModel(LexicalizedParser.java:186)
at com.chaoticity.dependensee.Main.writeImage(Main.java:172)
at com.chaoticity.dependensee.Main.writeImage(Main.java:165)
at com.chaoticity.dependensee.Main.main(Main.java:55)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.