Class SimpleNaiveBayesClassifier
A simplistic Lucene based NaiveBayes classifier, see
http://en.wikipedia.org/wiki/Naive_Bayes_classifier
@lucene.experimental
Inheritance
System.Object
SimpleNaiveBayesClassifier
Assembly: Lucene.Net.Classification.dll
Syntax
public class SimpleNaiveBayesClassifier : object, IClassifier<BytesRef>
Constructors
Name | Description |
---|---|
SimpleNaiveBayesClassifier() | Creates a new NaiveBayes classifier. Note that you must call Train(AtomicReader, String, String, Analyzer) before you can classify any documents. |
Methods
Name | Description |
---|---|
AssignClass(String) | Assign a class (with score) to the given text string |
Train(AtomicReader, String, String, Analyzer) | Train the classifier using the underlying Lucene index |
Train(AtomicReader, String, String, Analyzer, Query) | Train the classifier using the underlying Lucene index |
Train(AtomicReader, String[], String, Analyzer, Query) | Train the classifier using the underlying Lucene index |