NaiveBayesModel model = NaiveBayesModel.materialize(new Path(getOption("model")), getConf());
AbstractNaiveBayesClassifier classifier;
if (complementary) {
classifier = new ComplementaryNaiveBayesClassifier(model);
} else {
classifier = new StandardNaiveBayesClassifier(model);
}
SequenceFile.Writer writer =
new SequenceFile.Writer(fs, getConf(), getOutputPath(), Text.class, VectorWritable.class);
SequenceFile.Reader reader = new Reader(fs, getInputPath(), getConf());
Text key = new Text();