optKey(DirichletDriver.MODEL_PROTOTYPE_CLASS_OPTION), description.getModelPrototype(),
optKey(DefaultOptionCreator.NUM_CLUSTERS_OPTION), "20", optKey(DefaultOptionCreator.MAX_ITERATIONS_OPTION),
maxIterations.toString(), optKey(DirichletDriver.ALPHA_OPTION), "1.0",
optKey(DefaultOptionCreator.OVERWRITE_OPTION),
optKey(DefaultOptionCreator.CLUSTERING_OPTION)};
Tool dirichletDriver = new DirichletDriver();
dirichletDriver.setConf(conf);
ToolRunner.run(conf, dirichletDriver, args);
// and inspect results
Collection<List<DirichletCluster>> clusters = new ArrayList<List<DirichletCluster>>();
Configuration conf = new Configuration();
conf.set(DirichletDriver.MODEL_DISTRIBUTION_KEY, description.toString());