@Test public void testIgnoreNonMyanmarCodePoints() { String allASCII = "blah blah blah blah blah"; String mixedUnicode = "<span>blah blah ဒဂုန်ဦးစန်းငွေ </span> blah blah blah blah"; String mixedZawgyi = "blah blah blah blah blah သို႔သြားပါ။ blah blah blah"; assertWithMessage("All ASCII") .that(detector.getZawgyiProbability(allASCII)) .isEqualTo(Double.NEGATIVE_INFINITY); assertWithMessage("Mixed Unicode") .that(detector.getZawgyiProbability(mixedUnicode)) .isLessThan(0.01); assertWithMessage("Mixed Zawgyi") .that(detector.getZawgyiProbability(mixedZawgyi)) .isGreaterThan(0.99); }
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);  }