Package cc.mallet.classify
Class NaiveBayesTrainer.Factory
- java.lang.Object
-
- cc.mallet.classify.ClassifierTrainer.Factory<NaiveBayesTrainer>
-
- cc.mallet.classify.NaiveBayesTrainer.Factory
-
- Enclosing class:
- NaiveBayesTrainer
public static class NaiveBayesTrainer.Factory extends ClassifierTrainer.Factory<NaiveBayesTrainer>
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NaiveBayesTrainer
newClassifierTrainer(Classifier initialClassifier)
NaiveBayesTrainer.Factory
setDocLengthNormalization(double docLengthNormalization)
NaiveBayesTrainer.Factory
setFeatureMultinomialEstimator(Multinomial.Estimator featureEstimator)
NaiveBayesTrainer.Factory
setPriorMultinomialEstimator(Multinomial.Estimator priorEstimator)
-
Methods inherited from class cc.mallet.classify.ClassifierTrainer.Factory
newClassifierTrainer, toString
-
-
-
-
Method Detail
-
newClassifierTrainer
public NaiveBayesTrainer newClassifierTrainer(Classifier initialClassifier)
- Specified by:
newClassifierTrainer
in classClassifierTrainer.Factory<NaiveBayesTrainer>
-
setDocLengthNormalization
public NaiveBayesTrainer.Factory setDocLengthNormalization(double docLengthNormalization)
-
setFeatureMultinomialEstimator
public NaiveBayesTrainer.Factory setFeatureMultinomialEstimator(Multinomial.Estimator featureEstimator)
-
setPriorMultinomialEstimator
public NaiveBayesTrainer.Factory setPriorMultinomialEstimator(Multinomial.Estimator priorEstimator)
-
-