List of usage examples for org.apache.mahout.classifier.naivebayes BayesUtils readIndexFromCache
public static OpenObjectIntHashMap<String> readIndexFromCache(Configuration conf) throws IOException
From source file:com.netease.news.classifier.naivebayes.IndexInstancesMapper.java
License:Apache License
@Override protected void setup(Context ctx) throws IOException, InterruptedException { super.setup(ctx); labelIndex = BayesUtils.readIndexFromCache(ctx.getConfiguration()); }