opennlp.tools.doccat
Interface DocumentCategorizer
- All Known Implementing Classes:
- DocumentCategorizerME
public interface DocumentCategorizer
Interface for classes which categorize documents.
categorize
double[] categorize(String[] text)
- Categorizes the given text.
- Parameters:
text
-
getBestCategory
String getBestCategory(double[] outcome)
getIndex
int getIndex(String category)
getCategory
String getCategory(int index)
getNumberOfCategories
int getNumberOfCategories()
categorize
double[] categorize(String documentText)
getAllResults
String getAllResults(double[] results)
Copyright © 2010. All Rights Reserved.