optKey(DefaultOptionCreator.CLUSTERING_OPTION) };
ToolRunner.run(new Configuration(), new DirichletDriver(), args);
// and inspect results
Collection<List<DirichletCluster>> clusters = new ArrayList<List<DirichletCluster>>();
Configuration conf = new Configuration();
conf.set(DirichletDriver.MODEL_DISTRIBUTION_KEY, modelDistribution.asJsonString());
conf.set(DirichletDriver.NUM_CLUSTERS_KEY, "20");
conf.set(DirichletDriver.ALPHA_0_KEY, "1.0");
for (int i = 0; i <= maxIterations; i++) {
conf.set(DirichletDriver.STATE_IN_KEY, new Path(getTestTempDirPath("output"), "clusters-" + i).toString());
clusters.add(DirichletMapper.getDirichletState(conf).getClusters());