title: Apache OpenNLP bug it doesn't load en-pos-maxent.bin
body: <p>I'm trying to use Apache OpenNLP POSTagger example codes, and i've come up with an error, and below is the code</p>
  
  <pre><code>public String[] SentenceDetect(String qwe) throws IOException 
   {
  
  POSModel model = new POSModelLoader().load(new File("/home/jebard/chabacano/Chabacano1/src/en-pos-maxent.bin"));
  PerformanceMonitor perfMon = new PerformanceMonitor(System.err, "sent");
  POSTaggerME tagger = new POSTaggerME(model);
  
  String input = "Hi. How are you? This is Mike.";
  ObjectStream&lt;String&gt; lineStream = new PlainTextByLineStream(
          new StringReader(input));
  perfMon.start();
  String line;
  while ((line = lineStream.read()) != null) {
  
      String whitespaceTokenizerLine[] = WhitespaceTokenizer.INSTANCE
              .tokenize(line);
      String[] tags = tagger.tag(whitespaceTokenizerLine);
  
      POSSample sample = new POSSample(whitespaceTokenizerLine, tags);
      System.out.println(sample.toString());
  
      perfMon.incrementCounter();
  }
  perfMon.stopAndPrintFinalResult();
  </code></pre>
  
  <p>Error at this line</p>
  
  <blockquote>
    <p>.load(new File("/home/jebard/chabacano/Chabacano1/src/en-pos-maxent.bin")</p>
  </blockquote>
  
  <p>The method load(java.io.File) in type ModelLoader  is not applicable for the arguments(org.apache.tomcat.jni.File)</p>