BayesFeatureMapper mapper = new BayesFeatureMapper();
JobConf conf = new JobConf();
conf.set("io.serializations",
"org.apache.hadoop.io.serializer.JavaSerialization,org.apache.hadoop.io.serializer.WritableSerialization");
conf.set("bayes.parameters", new BayesParameters(3).toString());
mapper.configure(conf);
DummyOutputCollector<StringTuple, DoubleWritable> output = new DummyOutputCollector<StringTuple, DoubleWritable>();
mapper.map(new Text("foo"), new Text("big brown shoe"), output, Reporter.NULL);
Map<String, List<DoubleWritable>> outMap = output.getData();
System.out.println("Map: " + outMap);