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

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

目录
相关文章
|
4月前
|
Python
Cannot find reference ‘args‘ in ‘__init__.pyi‘ ,request要写对
Cannot find reference ‘args‘ in ‘__init__.pyi‘ ,request要写对
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.
|
6月前
|
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
76 0
|
缓存 关系型数据库 MySQL
【异常解决】缓存报错:Null key returned for cache operation (maybe you are using named params on classes withou
【异常解决】缓存报错:Null key returned for cache operation (maybe you are using named params on classes withou
653 0
|
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
78 0
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‘
101 0
Could not find com.serenegiant:common:4.1.1
Could not find com.serenegiant:common:4.1.1
253 0
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
604 0
torch.distributed.init_process_group(‘gloo’, init_method=‘file://tmp/somefile’, rank=0, world_size=1
成功解决问题"h5py\h5r.pyx", line 145, in init h5py.h5r AttributeError: type object 'h5py.h5r.Reference' ha
成功解决问题"h5py\h5r.pyx", line 145, in init h5py.h5r AttributeError: type object 'h5py.h5r.Reference' ha
|
PHP 开发工具
报错 invalid [default store dir]: /tmp/
php sdk解压以后文件如下   推荐处理方案    1.如果使用支付宝sdk,首先lotusphp_runtime 文件也要一起使用  支付宝现在的php sdk中有lotus框架可以和aop文件   夹放在同一级    2.
895 12