Could not initialize English chunker/Could not load file from classpath: ‘/en-token.bin‘

Posted 柳鲲鹏

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Could not initialize English chunker/Could not load file from classpath: ‘/en-token.bin‘相关的知识,希望对你有一定的参考价值。

具体错误:

java.lang.RuntimeException: Could not initialize English chunker
	at org.languagetool.chunking.EnglishChunker.<init>(EnglishChunker.java:72)
	at org.languagetool.language.English.createDefaultChunker(English.java:123)
	at org.languagetool.Language.getChunker(Language.java:476)
	at org.languagetool.JLanguageTool.getRawAnalyzedSentence(JLanguageTool.java:1479)
	at org.languagetool.JLanguageTool.getAnalyzedSentence(JLanguageTool.java:1444)
	at org.languagetool.JLanguageTool.analyzeSentences(JLanguageTool.java:1172)
	at org.languagetool.JLanguageTool.check(JLanguageTool.java:899)
	at org.languagetool.JLanguageTool.check(JLanguageTool.java:882)
	at org.languagetool.JLanguageTool.check(JLanguageTool.java:869)
	at org.languagetool.JLanguageTool.check(JLanguageTool.java:859)
	at org.languagetool.JLanguageTool.check(JLanguageTool.java:841)
	at org.languagetool.JLanguageTool.check(JLanguageTool.java:798)
	at org.languagetool.JLanguageTool.check(JLanguageTool.java:782)
	at taishan.languagetool.LanguageToolTest.main(LanguageToolTest.java:23)
Caused by: java.io.IOException: Could not load file from classpath: '/en-token.bin'
	at org.languagetool.tools.Tools.getStream(Tools.java:264)
	at org.languagetool.chunking.EnglishChunker.<init>(EnglishChunker.java:62)
	... 13 more

这个意思很明显,缺少文件。出错原因是自己编译的,缺少东西。去下载官方包就没有这个问题:

Index of /snapshots/

以上是关于Could not initialize English chunker/Could not load file from classpath: ‘/en-token.bin‘的主要内容,如果未能解决你的问题,请参考以下文章

could not initialize proxy - no Session

Could not initialize class org.apache.xpath...

PowerDesigner 逆向工程 Could not Initialize JavaVM!

jacob运行tomcat报错 Could not initialize class com.jacob.com.ComThread

Could not initialize class utils.JdbcUtils

Could not initialize class net.sf.json.util.JSONUtils 这个问题怎么解决