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

Solutions on the web

via Stack Overflow by SahelSoft
, 1 year ago
Unable to resolve edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz" as either class path, filename or URL
via Stack Overflow by Unknown author, 2 years ago
Unable to resolve "edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz" as either class path, filename or URL
via GitHub by goog
, 1 year ago
Unable to resolve "edu/stanford/nlp/models/lexparser/englishFactored.ser.gz" as either class path, filename or URL
via Stack Overflow by user567879
, 6 months ago
Unable to open "englishPCFG.ser.gz" as class path, filename or URL
via GitHub by emhill
, 1 year ago
Unable to resolve "edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz" as either class path, filename or URL
via GitHub by matanster
, 2 years ago
Unable to resolve "edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz" as either 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.readStreamFromString(IOUtils.java:407)
at edu.stanford.nlp.parser.lexparser.LexicalizedParser.getParserFromSerializedFile(LexicalizedParser.java:610)
at edu.stanford.nlp.parser.lexparser.LexicalizedParser.getParserFromFile(LexicalizedParser.java:404)
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.