opennlp.tools.doccat
Interface DocumentCategorizer

All Known Implementing Classes:
DocumentCategorizerME

public interface DocumentCategorizer

Interface for classes which categorize documents.


Method Summary
 double[] categorize(String documentText)
           
 double[] categorize(String[] text)
          Categorizes the given text.
 String getAllResults(double[] results)
           
 String getBestCategory(double[] outcome)
           
 String getCategory(int index)
           
 int getIndex(String category)
           
 int getNumberOfCategories()
           
 

Method Detail

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 © 2013 The Apache Software Foundation. All Rights Reserved.