public void runJob(Path input, Path output, BayesParameters params) throws IOException {
HadoopUtil.overwriteOutput(output);
log.info("Reading features...");
// Read the features in each document normalized by length of each document
BayesFeatureDriver feature = new BayesFeatureDriver();
feature.runJob(input, output, params);
log.info("Calculating Tf-Idf...");
// Calculate the TfIdf for each word in each label
BayesTfIdfDriver tfidf = new BayesTfIdfDriver();
tfidf.runJob(input, output, params);