public class StatisticalDocumentClassifier extends Object
| Constructor and Description |
|---|
StatisticalDocumentClassifier(Properties props) |
StatisticalDocumentClassifier(String inputModel,
String language) |
| Modifier and Type | Method and Description |
|---|---|
String |
classify(String[] document)
Classifies the given text, provided in separate tokens.
|
double[] |
classifyProb(String[] document)
Classifies the given text, provided in separate tokens.
|
SortedMap<Double,Set<String>> |
classifySortedScoreMap(String[] document)
Get a map of the scores sorted in ascending order together with their associated labels.
|
void |
clearFeatureData()
Forgets all adaptive data which was collected during previous calls to one
of the find methods.
|
public StatisticalDocumentClassifier(Properties props)
public StatisticalDocumentClassifier(String inputModel, String language) throws IOException
IOExceptionpublic String classify(String[] document)
document - the tokens of text to classifypublic double[] classifyProb(String[] document)
document - the tokens of text to classifypublic SortedMap<Double,Set<String>> classifySortedScoreMap(String[] document)
document - the input text to classifypublic final void clearFeatureData()
Copyright © 2017 IXA pipes. All rights reserved.