Package | Description |
---|---|
org.apache.lucene.classification |
Uses already seen data (the indexed documents) to classify an input ( can be simple text or a structured document).
|
org.apache.lucene.classification.document |
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<BytesRef> |
KNearestFuzzyClassifier.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
|
ClassificationResult<BytesRef> |
BM25NBClassifier.assignClass(String inputDocument)
Assign a class (with score) to the given text String
|
protected ClassificationResult<BytesRef> |
KNearestNeighborClassifier.classifyFromTopDocs(TopDocs knnResults)
TODO
|
Modifier and Type | Method and Description |
---|---|
protected List<ClassificationResult<BytesRef>> |
SimpleNaiveBayesClassifier.assignClassNormalizedList(String inputDocument)
Calculate probabilities for all classes for a given input text
|
protected List<ClassificationResult<BytesRef>> |
CachingNaiveBayesClassifier.assignClassNormalizedList(String inputDocument) |
protected List<ClassificationResult<BytesRef>> |
KNearestNeighborClassifier.buildListFromTopDocs(TopDocs topDocs)
build a list of classification results from search results
|
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<BytesRef>> |
KNearestFuzzyClassifier.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>> |
BM25NBClassifier.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<BytesRef>> |
KNearestFuzzyClassifier.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. |
List<ClassificationResult<BytesRef>> |
BM25NBClassifier.getClasses(String text,
int max)
Get the first
max classes (sorted by score, descending) assigned to the given text String. |
protected ArrayList<ClassificationResult<BytesRef>> |
SimpleNaiveBayesClassifier.normClassificationResults(List<ClassificationResult<BytesRef>> assignedClasses)
Normalize the classification results based on the max score available
|
Modifier and Type | Method and Description |
---|---|
int |
ClassificationResult.compareTo(ClassificationResult<T> o) |
Modifier and Type | Method and Description |
---|---|
protected ArrayList<ClassificationResult<BytesRef>> |
SimpleNaiveBayesClassifier.normClassificationResults(List<ClassificationResult<BytesRef>> assignedClasses)
Normalize the classification results based on the max score available
|
Modifier and Type | Method and Description |
---|---|
ClassificationResult<BytesRef> |
SimpleNaiveBayesDocumentClassifier.assignClass(Document document)
Assign a class (with score) to the given
Document |
ClassificationResult<BytesRef> |
KNearestNeighborDocumentClassifier.assignClass(Document document)
Assign a class (with score) to the given
Document |
ClassificationResult<T> |
DocumentClassifier.assignClass(Document document)
Assign a class (with score) to the given
Document |
Modifier and Type | Method and Description |
---|---|
List<ClassificationResult<BytesRef>> |
SimpleNaiveBayesDocumentClassifier.getClasses(Document document)
Get all the classes (sorted by score, descending) assigned to the given
Document . |
List<ClassificationResult<BytesRef>> |
KNearestNeighborDocumentClassifier.getClasses(Document document)
Get all the classes (sorted by score, descending) assigned to the given
Document . |
List<ClassificationResult<T>> |
DocumentClassifier.getClasses(Document document)
Get all the classes (sorted by score, descending) assigned to the given
Document . |
List<ClassificationResult<BytesRef>> |
SimpleNaiveBayesDocumentClassifier.getClasses(Document document,
int max)
Get the first
max classes (sorted by score, descending) assigned to the given text String. |
List<ClassificationResult<BytesRef>> |
KNearestNeighborDocumentClassifier.getClasses(Document document,
int max)
Get the first
max classes (sorted by score, descending) assigned to the given text String. |
List<ClassificationResult<T>> |
DocumentClassifier.getClasses(Document document,
int max)
Get the first
max classes (sorted by score, descending) assigned to the given text String. |
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.