java language detection LangDetectException

自作多情 提交于 2019-12-13 05:02:13

问题


Working on language detection in java, i try to use langdetect library but i got this error when running Exception in thread "main" com.cybozu.labs.langdetect.LangDetectException: need to load profiles. Could someone help me to add profile? i don't know it can look like.

regards,


回答1:


Add this line

  DetectorFactory.loadProfile("your/path/to/profiles");


来源:https://stackoverflow.com/questions/22934024/java-language-detection-langdetectexception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!