public final class ZawgyiDetector extends Object
For more details and documentation, see https://github.com/googlei18n/myanmar-tools
| Constructor and Description |
|---|
ZawgyiDetector()
Loads the model from the resource and returns a ZawgyiDetector instance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getZawgyiProbability(String input)
Performs detection on the given string.
|
double |
getZawgyiProbability(String input,
boolean verbose)
Performs detection on the given string.
|
public ZawgyiDetector()
public double getZawgyiProbability(String input, boolean verbose)
If the string does not contain any Myanmar range code points, -Infinity is returned.
input - The string on which to run detection.verbose - If true, print debugging information to standard output.public double getZawgyiProbability(String input)
If the string does not contain any Myanmar range code points, -Infinity is returned.
input - The string on which to run detection.Copyright © 2019. All rights reserved.