我以下列方式使用 Java语言检测库:
Detector detector = DetectorFactory.create(); //profiles are in the default location
detector.append("What language is this text?");
List<Language> languages = detector.getProbabilities();
Language mostProbable = languages.get(0);
System.out.println(mostProbable.lang + " - " + mostProbable.prob);
给定完全相同的输入,该prob
值因执行而异。那是“正常”吗?这取决于什么?