public interface DocumentCategorizer
Modifier and Type | Method and Description |
---|---|
double[] |
categorize(String documentText) |
double[] |
categorize(String[] text)
Categorizes the given text.
|
double[] |
categorize(String[] text,
Map<String,Object> extraInformation) |
double[] |
categorize(String documentText,
Map<String,Object> extraInformation) |
String |
getAllResults(double[] results) |
String |
getBestCategory(double[] outcome) |
String |
getCategory(int index) |
int |
getIndex(String category) |
int |
getNumberOfCategories() |
Map<String,Double> |
scoreMap(String text) |
SortedMap<Double,Set<String>> |
sortedScoreMap(String text) |
double[] categorize(String[] text)
text
- String getBestCategory(double[] outcome)
int getIndex(String category)
String getCategory(int index)
int getNumberOfCategories()
double[] categorize(String documentText)
String getAllResults(double[] results)
Copyright © 2015 The Apache Software Foundation. All rights reserved.