java.io.IOException

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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web19808

  • via GitHub by JSB97
    , 7 months ago
    Unable to open "edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz" as class path, filename or URL
  • Unable to openedu/stanford/nlp/models/lexparser/englishPCFG.ser.gzas class path, filename or URL
  • via GitHub by lramach
    , 1 year ago
    Unable to resolve "edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz" as either class path, filename or URL
  • Stack trace

    • java.io.IOException: Unable to open “edu/stanford
    • lp/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 edu.stanford.nlp.parser.lexparser.LexicalizedParser.loadModel(LexicalizedParser.java:165) 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago