A B C D E F G H I K M N O Q R S T V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addTerms(String, String) - Method in class org.apache.lucene.classification.utils.NearestFuzzyQuery
-
Adds user input for "fuzzification"
- analyzer - Variable in class org.apache.lucene.classification.SimpleNaiveBayesClassifier
-
Analyzer
to be used for tokenizing unseen input text - assignClass(String) - Method in class org.apache.lucene.classification.BM25NBClassifier
- assignClass(String) - Method in class org.apache.lucene.classification.BooleanPerceptronClassifier
- assignClass(String) - Method in interface org.apache.lucene.classification.Classifier
-
Assign a class (with score) to the given text String
- assignClass(String) - Method in class org.apache.lucene.classification.KNearestFuzzyClassifier
- assignClass(String) - Method in class org.apache.lucene.classification.KNearestNeighborClassifier
- assignClass(String) - Method in class org.apache.lucene.classification.SimpleNaiveBayesClassifier
- assignClass(Document) - Method in interface org.apache.lucene.classification.document.DocumentClassifier
-
Assign a class (with score) to the given
Document
- assignClass(Document) - Method in class org.apache.lucene.classification.document.KNearestNeighborDocumentClassifier
- assignClass(Document) - Method in class org.apache.lucene.classification.document.SimpleNaiveBayesDocumentClassifier
- assignClassNormalizedList(String) - Method in class org.apache.lucene.classification.CachingNaiveBayesClassifier
-
Transforms values into a range between 0 and 1
- assignClassNormalizedList(String) - Method in class org.apache.lucene.classification.SimpleNaiveBayesClassifier
-
Calculate probabilities for all classes for a given input text
B
- BM25NBClassifier - Class in org.apache.lucene.classification
-
A classifier approximating naive bayes classifier by using pure queries on BM25.
- BM25NBClassifier(IndexReader, Analyzer, Query, String, String...) - Constructor for class org.apache.lucene.classification.BM25NBClassifier
-
Creates a new NaiveBayes classifier.
- BooleanPerceptronClassifier - Class in org.apache.lucene.classification
- BooleanPerceptronClassifier(IndexReader, Analyzer, Query, Integer, Double, String, String) - Constructor for class org.apache.lucene.classification.BooleanPerceptronClassifier
-
Creates a
BooleanPerceptronClassifier
- buildListFromTopDocs(TopDocs) - Method in class org.apache.lucene.classification.KNearestNeighborClassifier
-
build a list of classification results from search results
C
- CachingNaiveBayesClassifier - Class in org.apache.lucene.classification
-
A simplistic Lucene based NaiveBayes classifier, with caching feature, see
http://en.wikipedia.org/wiki/Naive_Bayes_classifier
- CachingNaiveBayesClassifier(IndexReader, Analyzer, Query, String, String...) - Constructor for class org.apache.lucene.classification.CachingNaiveBayesClassifier
-
Creates a new NaiveBayes classifier with inside caching.
- classFieldName - Variable in class org.apache.lucene.classification.KNearestNeighborClassifier
-
the name of the field used as the output text
- classFieldName - Variable in class org.apache.lucene.classification.SimpleNaiveBayesClassifier
-
name of the field to be used as a class / category output
- ClassificationResult<T> - Class in org.apache.lucene.classification
-
The result of a call to
Classifier.assignClass(String)
holding an assigned class of typeT
and a score. - ClassificationResult(T, double) - Constructor for class org.apache.lucene.classification.ClassificationResult
-
Constructor
- Classifier<T> - Interface in org.apache.lucene.classification
-
A classifier, see
http://en.wikipedia.org/wiki/Classifier_(mathematics)
, which assign classes of typeT
- classifyFromTopDocs(TopDocs) - Method in class org.apache.lucene.classification.KNearestNeighborClassifier
-
TODO
- compareTo(ClassificationResult<T>) - Method in class org.apache.lucene.classification.ClassificationResult
- ConfusionMatrixGenerator - Class in org.apache.lucene.classification.utils
-
Utility class to generate the confusion matrix of a
Classifier
- ConfusionMatrixGenerator.ConfusionMatrix - Class in org.apache.lucene.classification.utils
-
a confusion matrix, backed by a
Map
representing the linearized matrix - countDocsWithClass() - Method in class org.apache.lucene.classification.SimpleNaiveBayesClassifier
-
count the number of documents in the index having at least a value for the 'class' field
D
- DatasetSplitter - Class in org.apache.lucene.classification.utils
-
Utility class for creating training / test / cross validation indexes from the original index.
- DatasetSplitter(double, double) - Constructor for class org.apache.lucene.classification.utils.DatasetSplitter
-
Create a
DatasetSplitter
by giving test and cross validation IDXs sizes - DocToDoubleVectorUtils - Class in org.apache.lucene.classification.utils
-
utility class for converting Lucene
Document
s toDouble
vectors. - DocumentClassifier<T> - Interface in org.apache.lucene.classification.document
-
A classifier, see
http://en.wikipedia.org/wiki/Classifier_(mathematics)
, which assign classes of typeT
to aDocument
s
E
- equals(Object) - Method in class org.apache.lucene.classification.utils.NearestFuzzyQuery
F
- field2analyzer - Variable in class org.apache.lucene.classification.document.KNearestNeighborDocumentClassifier
-
map of per field analyzers
- field2analyzer - Variable in class org.apache.lucene.classification.document.SimpleNaiveBayesDocumentClassifier
-
Analyzer
to be used for tokenizing document fields
G
- getAccuracy() - Method in class org.apache.lucene.classification.utils.ConfusionMatrixGenerator.ConfusionMatrix
-
Calculate accuracy on this confusion matrix using the formula: accuracy = correctly-classified / (correctly-classified + wrongly-classified)
- getAssignedClass() - Method in class org.apache.lucene.classification.ClassificationResult
-
retrieve the result class
- getAvgClassificationTime() - Method in class org.apache.lucene.classification.utils.ConfusionMatrixGenerator.ConfusionMatrix
-
get the average classification time in milliseconds
- getClasses(String) - Method in class org.apache.lucene.classification.BM25NBClassifier
- getClasses(String) - Method in class org.apache.lucene.classification.BooleanPerceptronClassifier
- getClasses(String) - Method in interface org.apache.lucene.classification.Classifier
-
Get all the classes (sorted by score, descending) assigned to the given text String.
- getClasses(String) - Method in class org.apache.lucene.classification.KNearestFuzzyClassifier
- getClasses(String) - Method in class org.apache.lucene.classification.KNearestNeighborClassifier
- getClasses(String) - Method in class org.apache.lucene.classification.SimpleNaiveBayesClassifier
- getClasses(String, int) - Method in class org.apache.lucene.classification.BM25NBClassifier
- getClasses(String, int) - Method in class org.apache.lucene.classification.BooleanPerceptronClassifier
- getClasses(String, int) - Method in interface org.apache.lucene.classification.Classifier
-
Get the first
max
classes (sorted by score, descending) assigned to the given text String. - getClasses(String, int) - Method in class org.apache.lucene.classification.KNearestFuzzyClassifier
- getClasses(String, int) - Method in class org.apache.lucene.classification.KNearestNeighborClassifier
- getClasses(String, int) - Method in class org.apache.lucene.classification.SimpleNaiveBayesClassifier
- getClasses(Document) - Method in interface org.apache.lucene.classification.document.DocumentClassifier
-
Get all the classes (sorted by score, descending) assigned to the given
Document
. - getClasses(Document) - Method in class org.apache.lucene.classification.document.KNearestNeighborDocumentClassifier
- getClasses(Document) - Method in class org.apache.lucene.classification.document.SimpleNaiveBayesDocumentClassifier
- getClasses(Document, int) - Method in interface org.apache.lucene.classification.document.DocumentClassifier
-
Get the first
max
classes (sorted by score, descending) assigned to the given text String. - getClasses(Document, int) - Method in class org.apache.lucene.classification.document.KNearestNeighborDocumentClassifier
- getClasses(Document, int) - Method in class org.apache.lucene.classification.document.SimpleNaiveBayesDocumentClassifier
- getConfusionMatrix(IndexReader, Classifier<T>, String, String, long) - Static method in class org.apache.lucene.classification.utils.ConfusionMatrixGenerator
-
get the
ConfusionMatrixGenerator.ConfusionMatrix
of a givenClassifier
, generated on the givenIndexReader
, class and text fields. - getF1Measure() - Method in class org.apache.lucene.classification.utils.ConfusionMatrixGenerator.ConfusionMatrix
-
get the F-1 measure on this confusion matrix
- getF1Measure(String) - Method in class org.apache.lucene.classification.utils.ConfusionMatrixGenerator.ConfusionMatrix
-
get the F-1 measure of the given class
- getLinearizedMatrix() - Method in class org.apache.lucene.classification.utils.ConfusionMatrixGenerator.ConfusionMatrix
-
get the linearized confusion matrix as a
Map
- getNumberOfEvaluatedDocs() - Method in class org.apache.lucene.classification.utils.ConfusionMatrixGenerator.ConfusionMatrix
-
get the no.
- getPrecision() - Method in class org.apache.lucene.classification.utils.ConfusionMatrixGenerator.ConfusionMatrix
-
get the macro averaged precision (see
ConfusionMatrixGenerator.ConfusionMatrix.getPrecision(String)
) over all the classes. - getPrecision(String) - Method in class org.apache.lucene.classification.utils.ConfusionMatrixGenerator.ConfusionMatrix
-
calculate precision on the given class
- getRecall() - Method in class org.apache.lucene.classification.utils.ConfusionMatrixGenerator.ConfusionMatrix
-
get the macro averaged recall (see
ConfusionMatrixGenerator.ConfusionMatrix.getRecall(String)
) over all the classes - getRecall(String) - Method in class org.apache.lucene.classification.utils.ConfusionMatrixGenerator.ConfusionMatrix
-
calculate recall on the given class
- getScore() - Method in class org.apache.lucene.classification.ClassificationResult
-
retrieve the result score
- getTokenArray(TokenStream) - Method in class org.apache.lucene.classification.document.SimpleNaiveBayesDocumentClassifier
-
Returns a token array from the
TokenStream
in input
H
- hashCode() - Method in class org.apache.lucene.classification.utils.NearestFuzzyQuery
I
- indexReader - Variable in class org.apache.lucene.classification.SimpleNaiveBayesClassifier
-
IndexReader
used to access theClassifier
's index - indexSearcher - Variable in class org.apache.lucene.classification.KNearestNeighborClassifier
-
an
IndexSearcher
used to perform queries - indexSearcher - Variable in class org.apache.lucene.classification.SimpleNaiveBayesClassifier
-
IndexSearcher
to run searches on the index for retrieving frequencies
K
- k - Variable in class org.apache.lucene.classification.KNearestNeighborClassifier
-
the no.
- KNearestFuzzyClassifier - Class in org.apache.lucene.classification
-
A k-Nearest Neighbor classifier based on
NearestFuzzyQuery
. - KNearestFuzzyClassifier(IndexReader, Similarity, Analyzer, Query, int, String, String...) - Constructor for class org.apache.lucene.classification.KNearestFuzzyClassifier
-
Creates a
KNearestFuzzyClassifier
. - KNearestNeighborClassifier - Class in org.apache.lucene.classification
-
A k-Nearest Neighbor classifier (see
http://en.wikipedia.org/wiki/K-nearest_neighbors
) based onMoreLikeThis
- KNearestNeighborClassifier(IndexReader, Similarity, Analyzer, Query, int, int, int, String, String...) - Constructor for class org.apache.lucene.classification.KNearestNeighborClassifier
-
Creates a
KNearestNeighborClassifier
. - KNearestNeighborDocumentClassifier - Class in org.apache.lucene.classification.document
-
A k-Nearest Neighbor Document classifier (see
http://en.wikipedia.org/wiki/K-nearest_neighbors
) based onMoreLikeThis
. - KNearestNeighborDocumentClassifier(IndexReader, Similarity, Query, int, int, int, String, Map<String, Analyzer>, String...) - Constructor for class org.apache.lucene.classification.document.KNearestNeighborDocumentClassifier
-
Creates a
KNearestNeighborClassifier
.
M
- mlt - Variable in class org.apache.lucene.classification.KNearestNeighborClassifier
-
a
MoreLikeThis
instance used to perform MLT queries
N
- NearestFuzzyQuery - Class in org.apache.lucene.classification.utils
-
Simplification of FuzzyLikeThisQuery, to be used in the context of KNN classification.
- NearestFuzzyQuery(Analyzer) - Constructor for class org.apache.lucene.classification.utils.NearestFuzzyQuery
-
Default constructor
- normClassificationResults(List<ClassificationResult<BytesRef>>) - Method in class org.apache.lucene.classification.SimpleNaiveBayesClassifier
-
Normalize the classification results based on the max score available
O
- org.apache.lucene.classification - package 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 - package org.apache.lucene.classification.document
-
Uses already seen data (the indexed documents) to classify new documents.
- org.apache.lucene.classification.utils - package org.apache.lucene.classification.utils
-
Utilities for evaluation, data preparation, etc.
Q
- query - Variable in class org.apache.lucene.classification.KNearestNeighborClassifier
-
a
Query
used to filter the documents that should be used from this classifier's underlyingLeafReader
- query - Variable in class org.apache.lucene.classification.SimpleNaiveBayesClassifier
-
Query
used to eventually filter the document set to be used to classify
R
- reInitCache(int, boolean) - Method in class org.apache.lucene.classification.CachingNaiveBayesClassifier
-
This function is building the frame of the cache.
- rewrite(IndexSearcher) - Method in class org.apache.lucene.classification.utils.NearestFuzzyQuery
S
- SimpleNaiveBayesClassifier - Class in org.apache.lucene.classification
-
A simplistic Lucene based NaiveBayes classifier, see
http://en.wikipedia.org/wiki/Naive_Bayes_classifier
- SimpleNaiveBayesClassifier(IndexReader, Analyzer, Query, String, String...) - Constructor for class org.apache.lucene.classification.SimpleNaiveBayesClassifier
-
Creates a new NaiveBayes classifier.
- SimpleNaiveBayesDocumentClassifier - Class in org.apache.lucene.classification.document
-
A simplistic Lucene based NaiveBayes classifier, see
http://en.wikipedia.org/wiki/Naive_Bayes_classifier
- SimpleNaiveBayesDocumentClassifier(IndexReader, Query, String, Map<String, Analyzer>, String...) - Constructor for class org.apache.lucene.classification.document.SimpleNaiveBayesDocumentClassifier
-
Creates a new NaiveBayes classifier.
- split(IndexReader, Directory, Directory, Directory, Analyzer, boolean, String, String...) - Method in class org.apache.lucene.classification.utils.DatasetSplitter
-
Split a given index into 3 indexes for training, test and cross validation tasks respectively
T
- textFieldNames - Variable in class org.apache.lucene.classification.KNearestNeighborClassifier
-
the name of the fields used as the input text
- textFieldNames - Variable in class org.apache.lucene.classification.SimpleNaiveBayesClassifier
-
names of the fields to be used as input text
- toDenseLocalFreqDoubleArray(Terms) - Static method in class org.apache.lucene.classification.utils.DocToDoubleVectorUtils
-
create a dense
Double
vector given doc and field term vectors using local frequency of the terms in the doc - tokenize(String) - Method in class org.apache.lucene.classification.SimpleNaiveBayesClassifier
-
tokenize a
String
on this classifier's text fields and analyzer - toSparseLocalFreqDoubleArray(Terms, Terms) - Static method in class org.apache.lucene.classification.utils.DocToDoubleVectorUtils
-
create a sparse
Double
vector given doc and field term vectors using local frequency of the terms in the doc - toString() - Method in class org.apache.lucene.classification.KNearestFuzzyClassifier
- toString() - Method in class org.apache.lucene.classification.KNearestNeighborClassifier
- toString() - Method in class org.apache.lucene.classification.utils.ConfusionMatrixGenerator.ConfusionMatrix
- toString(String) - Method in class org.apache.lucene.classification.utils.NearestFuzzyQuery
V
- visit(QueryVisitor) - Method in class org.apache.lucene.classification.utils.NearestFuzzyQuery
All Classes All Packages