【发布时间】:2014-05-20 23:18:50
【问题描述】:
在 java 中进行语言检测时,我尝试使用 langdetect 库,但在运行 线程“main”com.cybozu.labs.langdetect.LangDetectException 中的异常:需要加载配置文件时出现此错误 .有人可以帮我添加个人资料吗?我不知道它看起来像。
问候,
【问题讨论】:
-
我试试这部分代码 Detectordetector = DetectorFactory.create();检测器.附加(文本);返回检测器.detect();
-
阅读库的“入门”页面 - code.google.com/p/language-detection/wiki/GettingStarted。它向您展示了从哪里获取配置文件...