在 java 中进行语言检测时,我尝试使用 langdetect 库,但在线程“main”com.cybozu.labs.langdetect.LangDetectException: need to load profiles 中运行 Exception时出现此错误。有人可以帮我添加个人资料吗?我不知道它看起来像。
问候,
在 java 中进行语言检测时,我尝试使用 langdetect 库,但在线程“main”com.cybozu.labs.langdetect.LangDetectException: need to load profiles 中运行 Exception时出现此错误。有人可以帮我添加个人资料吗?我不知道它看起来像。
问候,
添加这一行
DetectorFactory.loadProfile("your/path/to/profiles");
您可以从以下位置下载配置文件:可以从以下位置下载配置文件:https ://language-detection.googlecode.com/files/langdetect-09-13-2011.zip