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/

目录
相关文章
|
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”?
32 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]
284 0
|
4月前
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
|
6月前
|
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
32 0
|
11月前
|
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”?
安装 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
WRF模式报错:traj_opt is zero, but num_traj is not zero; setting num_traj to zero
最近,在跑WRF模式时遇到一个奇怪的问题,从WPS一直到WRF中运行./real.exe,全都没有问题,直到提交作业到集群上时发现,很短的时间内作业就结束了,而且只生成了一个时刻的数据,通过将debug_level调整到999发现,产生以下问题:
WRF模式报错:traj_opt is zero, but num_traj is not zero; setting num_traj to zero
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
537 0
torch.distributed.init_process_group(‘gloo’, init_method=‘file://tmp/somefile’, rank=0, world_size=1
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‘
93 0
|
人工智能 安全 Java
create PDF in console with no environment variable set
create PDF in console with no environment variable set
107 0