Example usage for Java opennlp.tools.doccat DocumentCategorizer fields, constructors, methods, implement or subclass
The text is from its open source code.
double[] | categorize(String[] text) Categorizes the given text, provided in separate tokens. |
String | getBestCategory(double[] outcome) get the best category from previously generated outcome probabilities |
String | getCategory(int index) get the category at a given index |
int | getIndex(String category) get the index of a certain category |
int | getNumberOfCategories() get the number of categories |