Package | Description |
---|---|
org.apache.lucene.classification |
Uses already seen data (the indexed documents) to classify new documents.
|
Modifier and Type | Method and Description |
---|---|
ClassificationResult<BytesRef> |
SimpleNaiveBayesClassifier.assignClass(String inputDocument)
Assign a class (with score) to the given text String
|
ClassificationResult<BytesRef> |
KNearestNeighborClassifier.assignClass(String text)
Assign a class (with score) to the given text String
|
ClassificationResult<T> |
Classifier.assignClass(String text)
Assign a class (with score) to the given text String
|
ClassificationResult<Boolean> |
BooleanPerceptronClassifier.assignClass(String text)
Assign a class (with score) to the given text String
|
Modifier and Type | Method and Description |
---|---|
List<ClassificationResult<BytesRef>> |
SimpleNaiveBayesClassifier.getClasses(String text)
Get all the classes (sorted by score, descending) assigned to the given text String.
|
List<ClassificationResult<BytesRef>> |
KNearestNeighborClassifier.getClasses(String text)
Get all the classes (sorted by score, descending) assigned to the given text String.
|
List<ClassificationResult<T>> |
Classifier.getClasses(String text)
Get all the classes (sorted by score, descending) assigned to the given text String.
|
List<ClassificationResult<Boolean>> |
BooleanPerceptronClassifier.getClasses(String text)
Get all the classes (sorted by score, descending) assigned to the given text String.
|
List<ClassificationResult<BytesRef>> |
SimpleNaiveBayesClassifier.getClasses(String text,
int max)
Get the first
max classes (sorted by score, descending) assigned to the given text String. |
List<ClassificationResult<BytesRef>> |
KNearestNeighborClassifier.getClasses(String text,
int max)
Get the first
max classes (sorted by score, descending) assigned to the given text String. |
List<ClassificationResult<T>> |
Classifier.getClasses(String text,
int max)
Get the first
max classes (sorted by score, descending) assigned to the given text String. |
List<ClassificationResult<Boolean>> |
BooleanPerceptronClassifier.getClasses(String text,
int max)
Get the first
max classes (sorted by score, descending) assigned to the given text String. |
Modifier and Type | Method and Description |
---|---|
int |
ClassificationResult.compareTo(ClassificationResult<T> o) |
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.