java.lang.RuntimeException: edu.stanford.nlp.io.RuntimeIOException: Error while loading a tagger model (probably missing model file)

GitHub | hassanz | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 238#237302920

    GitHub | 7 months ago | hassanz
    java.lang.RuntimeException: edu.stanford.nlp.io.RuntimeIOException: Error while loading a tagger model (probably missing model file)

    1 unregistered visitors

    Root Cause Analysis

    1. java.io.IOException

      Unable to open "edu/stanford/nlp/models/pos-tagger/english-left3words/english-left3words-distsim.tagger" as class path, filename or URL

      at edu.stanford.nlp.io.IOUtils.getInputStreamFromURLOrClasspathOrFileSystem()
    2. Stanford CoreNLP
      StanfordCoreNLPServer$CoreNLPHandler.handle
      1. edu.stanford.nlp.io.IOUtils.getInputStreamFromURLOrClasspathOrFileSystem(IOUtils.java:478)
      2. edu.stanford.nlp.tagger.maxent.MaxentTagger.readModelAndInit(MaxentTagger.java:792)
      3. edu.stanford.nlp.tagger.maxent.MaxentTagger.<init>(MaxentTagger.java:315)
      4. edu.stanford.nlp.tagger.maxent.MaxentTagger.<init>(MaxentTagger.java:266)
      5. edu.stanford.nlp.pipeline.POSTaggerAnnotator.loadModel(POSTaggerAnnotator.java:85)
      6. edu.stanford.nlp.pipeline.POSTaggerAnnotator.<init>(POSTaggerAnnotator.java:73)
      7. edu.stanford.nlp.pipeline.AnnotatorImplementations.posTagger(AnnotatorImplementations.java:63)
      8. edu.stanford.nlp.pipeline.AnnotatorFactories$4.create(AnnotatorFactories.java:241)
      9. edu.stanford.nlp.pipeline.AnnotatorPool.get(AnnotatorPool.java:120)
      10. edu.stanford.nlp.pipeline.StanfordCoreNLP.construct(StanfordCoreNLP.java:452)
      11. edu.stanford.nlp.pipeline.StanfordCoreNLP.<init>(StanfordCoreNLP.java:155)
      12. edu.stanford.nlp.pipeline.StanfordCoreNLP.<init>(StanfordCoreNLP.java:146)
      13. edu.stanford.nlp.pipeline.StanfordCoreNLPServer.mkStanfordCoreNLP(StanfordCoreNLPServer.java:231)
      14. edu.stanford.nlp.pipeline.StanfordCoreNLPServer.access$500(StanfordCoreNLPServer.java:41)
      15. edu.stanford.nlp.pipeline.StanfordCoreNLPServer$CoreNLPHandler.handle(StanfordCoreNLPServer.java:477)
      15 frames
    3. Java RT
      Thread.run
      1. com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
      2. sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)
      3. com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82)
      4. sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:675)
      5. com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
      6. sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:647)
      7. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      8. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      9. java.lang.Thread.run(Thread.java:745)
      9 frames