title: stanford corenlp: Unrecoverable error while loading a tagger model
body: <p>I need to use the StanfordTruecaser using the Java API. I have this code:</p>
  
  <pre><code>  String text = "i love paris. i am with barack obama";
  
    //define the properties of the pipeline to be run and add annotators to it
    Properties props = new Properties();
    props.put("annotators", "tokenize, ssplit, pos, lemma, ner, truecase");
    pipeline = new StanfordCoreNLP(props);
  
    //run annotators on document text
    Annotation document = new Annotation(text);
    pipeline.annotate(document);
  </code></pre>
  
  <p>But the POS tagger doesn't work well:</p>
  
  <pre><code>Adding annotator pos
  Exception in thread "main" java.lang.RuntimeException: edu.stanford.nlp.io.RuntimeIOException: Unrecoverable error while loading a tagger model
      at edu.stanford.nlp.pipeline.StanfordCoreNLP$4.create(StanfordCoreNLP.java:558)
      at edu.stanford.nlp.pipeline.AnnotatorPool.get(AnnotatorPool.java:85)
      at edu.stanford.nlp.pipeline.StanfordCoreNLP.construct(StanfordCoreNLP.java:267)
      at edu.stanford.nlp.pipeline.StanfordCoreNLP.&lt;init&gt;(StanfordCoreNLP.java:129)
      at edu.stanford.nlp.pipeline.StanfordCoreNLP.&lt;init&gt;(StanfordCoreNLP.java:125)
  </code></pre>
  
  <p>I use Eclipse and I have linked the <em>stanford-corenlp-3.4.jar</em> like this:
  <img src="https://i.stack.imgur.com/Dskig.png" alt="enter image description here"></p>