org.apache.lucene.classification (Lucene 10.5.1 classification API)
Description: declaration: package: org.apache.lucene.classification

# Package 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).

Currently contains a (simplistic) Naive Bayes classifier, a k-Nearest Neighbor classifier and a Perceptron based classifier.

- Related Packages
  Package
  Description
  org.apache.lucene.classification.document
  Uses already seen data (the indexed documents) to classify new documents.
  org.apache.lucene.classification.utils
  Utilities for evaluation, data preparation, etc.
- Class
  Description
  BM25NBClassifier
  A classifier approximating naive bayes classifier by using pure queries on BM25.
  BooleanPerceptronClassifier
  A perceptron (see `http://en.wikipedia.org/wiki/Perceptron`) based `Boolean` `Classifier`.
  CachingNaiveBayesClassifier
  A simplistic Lucene based NaiveBayes classifier, with caching feature, see `http://en.wikipedia.org/wiki/Naive_Bayes_classifier`
  ClassificationResult<T>
  The result of a call to `Classifier.assignClass(String)` holding an assigned class of type `T` and a score.
  Classifier<T>
  A classifier, see `http://en.wikipedia.org/wiki/Classifier_(mathematics)`, which assign classes of type `T`
  KNearestFuzzyClassifier
  A k-Nearest Neighbor classifier based on `NearestFuzzyQuery`.
  KNearestNeighborClassifier
  A k-Nearest Neighbor classifier (see `http://en.wikipedia.org/wiki/K-nearest_neighbors` ) based on `MoreLikeThis`
  SimpleNaiveBayesClassifier
  A simplistic Lucene based NaiveBayes classifier, see `http://en.wikipedia.org/wiki/Naive_Bayes_classifier`