title: Stanford CoreNLP properties File not found
body: <p>I am trying to do sentiment analysis on tweets but getting strange Exception.</p>
  
  <p>I am initializing pipeline with properties file and place properties file in resources directory, within src->main folder.
  <a href="https://i.stack.imgur.com/HE600.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HE600.png" alt="enter image description here"></a></p>
  
  <p>But still getting Exception in init function : </p>
  
  <pre><code>Exception in thread "main" edu.stanford.nlp.io.RuntimeIOException:    java.io.IOException: Unable to open "edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz" as class path, filename or URL
  at edu.stanford.nlp.parser.common.ParserGrammar.loadModel(ParserGrammar.java:188)
  at edu.stanford.nlp.pipeline.ParserAnnotator.loadModel(ParserAnnotator.java:212)
  at edu.stanford.nlp.pipeline.ParserAnnotator.&lt;init&gt;(ParserAnnotator.java:115)
  at edu.stanford.nlp.pipeline.AnnotatorImplementations.parse(AnnotatorImplementations.java:150)
  at edu.stanford.nlp.pipeline.AnnotatorFactories$11.create(AnnotatorFactories.java:463)
  at edu.stanford.nlp.pipeline.AnnotatorPool.get(AnnotatorPool.java:85)
  at edu.stanford.nlp.pipeline.StanfordCoreNLP.construct(StanfordCoreNLP.java:375)
  at edu.stanford.nlp.pipeline.StanfordCoreNLP.&lt;init&gt;(StanfordCoreNLP.java:139)
  at edu.stanford.nlp.pipeline.StanfordCoreNLP.&lt;init&gt;(StanfordCoreNLP.java:135)
  at com.mycompany.sentmentanalysisontweets.NLP.init(NLP.java:27)
  at com.mycompany.sentmentanalysisontweets.WhatToThink.main(WhatToThink.java:15)
  </code></pre>
  
  <p>In main method i'm calling <code>init()</code> method.</p>
  
  <pre><code>public class Main {
  
      public static void main(String[] args) {
          NLP.init();
      }
  }
  
  class NLP {
      static StanfordCoreNLP pipeline;
  
      public static void init() {
          InputStream input = NLP.class.getClass().getResourceAsStream("/example.properties");
          Properties prop = new Properties();
          try {
            prop.load(input);
          } catch (IOException e) {
            e.printStackTrace();
          }
  
          pipeline = new StanfordCoreNLP(prop);
      }
  }
  </code></pre>