我已经从opennlp下载了Apache opennlp,解压后在引用的库中添加了两个.jar文件。写一个简单的代码:如何在Eclipse Luna的Java项目中使用Apache OpenNLP?
modelIn = new FileInputStream("en-sent.bin");
OUTPUT:
java.io.FileNotFoundException: en-sent.bin (The system cannot find the file specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at Home.main(Home.java:16)
请重新格式化,使之明确。把你的栈跟踪也放在代码块中。有一堆///不会帮助任何人。 – Adarsha
[为什么加载POSModel文件不能在WEB-INF文件夹中工作?](http://stackoverflow.com/questions/32148328/why-does-the-loading-of-a-postodel -file-not-work-from-the-web-inf-folder) – MWiesner