问题
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