I'm using OpenNLP 1.5.2-snapshot with the UIMA wrappers. When I run OpenNLP 
inside eclipse, the tokenizer and sentence detector can read their respective 
1.5.0 models with no problem and everything works. If I try to invoke something 
on the command line, it fails to find the version resource file 
opennlp/tools/util/opennlp.version, defaults back to the dev version 
0.0.0-SNAPSHOT, then fails to load the model, claiming a version 
incompatibility. The version resource file is right there in the OpenNLP jar 
file.

I'm running Java 1.6 on Mac OSX Lion. Does anyone know why this would differ 
inside and outside eclipse, and how to fix it? Presumably something to do with 
resource loading. 

Line 192 of Version.java sets versionIn to null.

    InputStream versionIn = 
Version.class.getResourceAsStream("opennlp.version");

Thanks.

Stephan

Reply via email to