import org.apache.mahout.classifier.naivebayes.BayesUtils;
import org.apache.mahout.math.VectorWritable;
import org.apache.mahout.math.map.OpenObjectIntHashMap;
public class IndexInstancesMapper extends Mapper<Text, VectorWritable, IntWritable, VectorWritable> {
private static final Pattern SLASH = Pattern.compile("/");
<BUG>public enum Counter { SKIPPED_INSTANCES }
private OpenObjectIntHashMap<String> labelIndex;</BUG>
@Override
protected void setup(Context ctx) throws IOException, InterruptedException {
super.setup(ctx);

import org.apache.mahout.classifier.naivebayes.BayesUtils;
import org.apache.mahout.math.VectorWritable;
import org.apache.mahout.math.map.OpenObjectIntHashMap;
public class IndexInstancesMapper extends Mapper<Text, VectorWritable, IntWritable, VectorWritable> {
private static final Pattern SLASH = Pattern.compile("/");
enum Counter { SKIPPED_INSTANCES }
private OpenObjectIntHashMap<String> labelIndex;
@Override
protected void setup(Context ctx) throws IOException, InterruptedException {
super.setup(ctx);
