public class SemanticNBClassifier extends NBClassifier
Naive Bayesian Classifier with Semantic Smoothing or Background Smoothing
Copyright: Copyright (c) 2005
Company: IST, Drexel University
classPrior, lastClassProb, modelarrLabel, classNum, doctermMatrix, featureSelector, indexReader, validatingDocSet| Constructor and Description |
|---|
SemanticNBClassifier(IndexReader indexReader,
double bkgCoefficient) |
SemanticNBClassifier(IndexReader indexReader,
IndexReader topicIndexReader,
DoubleSparseMatrix topicTransMatrix,
double transCoefficient,
double bkgCoefficient) |
SemanticNBClassifier(IndexReader indexReader,
IndexReader topicIndexReader,
KnowledgeBase kngBase,
double transCoefficient,
double bkgCoefficient) |
SemanticNBClassifier(String modelFile) |
| Modifier and Type | Method and Description |
|---|---|
double |
getBackgroundCoefficient() |
double |
getTranslationCoefficient() |
void |
setBackgroundCoefficient(double bkgCoefficient) |
void |
setTranslationCoefficient(double transCoefficient) |
void |
train(DocClassSet trainingDocSet)
This method trains the classifier with the training document set.
|
classify, classify, getClassPrior, rank, saveModelclassify, classify, classify, getClassLabel, getDocTermMatrix, getFeatureSelector, getIndexReader, getRow, setFeatureSelector, train, trainFeatureSelectorpublic SemanticNBClassifier(String modelFile)
public SemanticNBClassifier(IndexReader indexReader, double bkgCoefficient)
public SemanticNBClassifier(IndexReader indexReader, IndexReader topicIndexReader, DoubleSparseMatrix topicTransMatrix, double transCoefficient, double bkgCoefficient)
public SemanticNBClassifier(IndexReader indexReader, IndexReader topicIndexReader, KnowledgeBase kngBase, double transCoefficient, double bkgCoefficient)
public double getTranslationCoefficient()
public void setTranslationCoefficient(double transCoefficient)
public double getBackgroundCoefficient()
public void setBackgroundCoefficient(double bkgCoefficient)
public void train(DocClassSet trainingDocSet)
Classifiertrain in interface Classifiertrain in class NBClassifiertrainingDocSet - training document setCopyright © 2018 JULIE Lab, Germany. All rights reserved.