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

简介: 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/

目录
相关文章
Warning: To load an ES module, set “type“: “module“ in the package.json or use the .mjs extension.
Warning: To load an ES module, set “type“: “module“ in the package.json or use the .mjs extension.
|
3月前
|
IDE 开发工具 Android开发
Couldn‘t get post build model. Module:UpdateService_0804.main Variant: debugOpen logcat panel fo
Couldn‘t get post build model. Module:UpdateService_0804.main Variant: debugOpen logcat panel fo
48 0
|
3月前
|
Java
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
73 1
|
3月前
|
Java 应用服务中间件
完美解决tomcat启动异常:Invalid byte tag in constant pool: 19;Unable to process Jar entry [module-info.class]
完美解决tomcat启动异常:Invalid byte tag in constant pool: 19;Unable to process Jar entry [module-info.class]
947 0
|
8月前
DevTools failed to load source map: Could not load content for…System error: net::ERR_FILE_NOT_FOUN
DevTools failed to load source map: Could not load content for…System error: net::ERR_FILE_NOT_FOUN
|
10月前
|
JavaScript Cloud Native Go
Error: Cannot find module ‘webpack/bin/config-yargs‘ at Function.Module._resolveFilename (intern
Error: Cannot find module ‘webpack/bin/config-yargs‘ at Function.Module._resolveFilename (intern
60 0
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
Error:(15, 13) java: No property named “id” exists in source parameter(s). Did you mean “null”?
安装 xgboost 报错ERROR: Command "python setup.py egg_info" failed with error code 1 in /private/var/fold
安装 xgboost 报错ERROR: Command "python setup.py egg_info" failed with error code 1 in /private/var/fold
安装 xgboost 报错ERROR: Command "python setup.py egg_info" failed with error code 1 in /private/var/fold
torch.distributed.init_process_group(‘gloo’, init_method=‘file://tmp/somefile’, rank=0, world_size=1
torch.distributed.init_process_group(‘gloo’, init_method=‘file://tmp/somefile’, rank=0, world_size=1
575 0
torch.distributed.init_process_group(‘gloo’, init_method=‘file://tmp/somefile’, rank=0, world_size=1
How to find unit test class by code
Created by Wang, Jerry, last modified on Dec 20, 2014
How to find unit test class by code