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/

目录
相关文章
Field userMapper in zero.file.videoProject.service.UserService required a bean of type ‘zero.file.vi
Field userMapper in zero.file.videoProject.service.UserService required a bean of type ‘zero.file.vi
|
9月前
|
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
131 0
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
InvalidJobConfException: Output directory not set
InvalidJobConfException: Output directory not set
76 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
93 0
913 error Component name “home“ should always be multi-word vuemulti-word-component-names
913 error Component name “home“ should always be multi-word vuemulti-word-component-names
140 0
checking build system type... ./config.guess: unable to guess system type/you must specify one
checking build system type... ./config.guess: unable to guess system type/you must specify one
180 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
619 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‘
125 0
成功解决问题"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