title: How to set OpenNLP Model binary file path in Eclipse?
body: <p>I have downloaded the Binary model files from <a href="http://opennlp.sourceforge.net/models-1.5/" rel="nofollow noreferrer">here</a> but i am not getting how do i have to set the path. I am using Eclipse, i tried adding these binary file into the path of my project.Second point is,I am not working on Maven Project. </p>
  
  <pre><code>import opennlp.tools.sentdetect.SentenceDetectorME;
  import opennlp.tools.sentdetect.SentenceModel;
  import opennlp.tools.util.InvalidFormatException;
  
  import java.io.FileInputStream;
  import java.io.IOException;
  import java.io.InputStream;
  
  
  public class OpenNlpTest {
  
  public static void SentenceDetect() throws InvalidFormatException,
  IOException {
  String paragraph = "Hi. How are you? This is Mike.";
  
  // always start with a model, a model is learned from training data
  InputStream is = new FileInputStream("en-sent.bin");
  SentenceModel model = new SentenceModel(is);
  SentenceDetectorME sdetector = new SentenceDetectorME(model);
  
  String sentences[] = sdetector.sentDetect(paragraph);
  
  System.out.println(sentences[0]);
  System.out.println(sentences[1]);
  is.close();
  
  }
  public static void main(String []z){
  
      try {
          SentenceDetect();
      } catch (InvalidFormatException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      } catch (IOException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
  }
  }
  </code></pre>
  
  <p>this is the code i am trying to run but it gives the following error</p>
  
  <pre><code>java.io.FileNotFoundException: en-sent.bin (The system cannot find the file specified)
  at java.io.FileInputStream.open(Native Method)
  at java.io.FileInputStream.&lt;init&gt;(Unknown Source)
  at java.io.FileInputStream.&lt;init&gt;(Unknown Source)
  at OpenNlpTest.SentenceDetect(OpenNlpTest.java:17)
  at OpenNlpTest.main(OpenNlpTest.java:31)
  </code></pre>
  
  <p>This is the hierarchy of my project which i have just started
  <img src="https://i.stack.imgur.com/5qSlt.png" alt="ScreenShot"> </p>