@Test public void testDifficult() { Object[][] cases = { {"အသံကို အစားထိုးလိုပါသလား။", 0.995}, {"နမူနာ", 0.26}, {" ဦး", 0.35}, {"အစားထိုး အထူးအက္ခရာ", 0.995}, {"ယခု မိုးရွာနေပါသလား။", 0.995}, {"အခြား", 0.74}, {"ကာမစာအုပ္မ်ား(ေစာက္ပတ္စာအုပ္မ်ား)", 1.0}, {"ညႇပ္စရာမလို", 0.82}, }; for (Object[] cas : cases) { String input = (String) cas[0]; double expected = (double) cas[1]; double actual = detector.getZawgyiProbability(input); assertWithMessage(input).that(actual).isWithin(0.005).of(expected); } }
public double getZawgyiProbability(String input, boolean verbose) { return model.predict(input, verbose); }
ZawgyiDetector { public double getZawgyiProbability(String input, boolean verbose) { return model.predict(input, verbose); } }
ZawgyiDetector { public double getZawgyiProbability(String input, boolean verbose) { return model.predict(input, verbose); } ZawgyiDetector();   ZawgyiDetector(InputStream inStream); }
ZawgyiDetector { public double getZawgyiProbability(String input, boolean verbose) { return model.predict(input, verbose); } ZawgyiDetector();   ZawgyiDetector(InputStream inStream); double getZawgyiProbability(String input, boolean verbose); double getZawgyiProbability(String input); }
ZawgyiDetector { public double getZawgyiProbability(String input, boolean verbose) { return model.predict(input, verbose); } ZawgyiDetector();   ZawgyiDetector(InputStream inStream); double getZawgyiProbability(String input, boolean verbose); double getZawgyiProbability(String input);  }