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

# Package org.apache.lucene.classification.document

package org.apache.lucene.classification.document
Uses already seen data (the indexed documents) to classify new documents.

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

- Related Packages
  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.utils
  Utilities for evaluation, data preparation, etc.
- Class
  Description
  DocumentClassifier<T>
  A classifier, see `http://en.wikipedia.org/wiki/Classifier_(mathematics)`, which assign classes of type `T` to a `Document`s
  KNearestNeighborDocumentClassifier
  A k-Nearest Neighbor Document classifier (see `http://en.wikipedia.org/wiki/K-nearest_neighbors`) based on `MoreLikeThis` .
  SimpleNaiveBayesDocumentClassifier
  A simplistic Lucene based NaiveBayes classifier, see `http://en.wikipedia.org/wiki/Naive_Bayes_classifier`