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.
|
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
74 0
|
6月前
Cannot load keys from store: class path resource
Cannot load keys from store: class path resource
376 0
|
6月前
|
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”?
141 1
|
11月前
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
|
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
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”?
|
JSON 移动开发 算法框架/工具
成功解决raise ValueError(‘No model found in config file.‘) ValueError: No model found in config file.
成功解决raise ValueError(‘No model found in config file.‘) ValueError: No model found in config file.
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
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‘
115 0