0

在 java 中进行语言检测时,我尝试使用 langdetect 库,但在线程“main”com.cybozu.labs.langdetect.LangDetectException: need to load profiles 中运行 Exception时出现此错误。有人可以帮我添加个人资料吗?我不知道它看起来像。

问候,

4

2 回答 2

0

添加这一行

  DetectorFactory.loadProfile("your/path/to/profiles");
于 2014-04-08T10:23:31.180 回答
0

您可以从以下位置下载配置文件:可以从以下位置下载配置文件:https ://language-detection.googlecode.com/files/langdetect-09-13-2011.zip

于 2020-05-29T12:55:08.310 回答