我已經從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