m.calculateProbabilities(partitions);
boolean is_valid = m.isValid();
if (is_valid == false) {
try {
File dump = new File("/tmp/" + e.getKey().getName() + ".markovs");
m.save(dump);
System.err.println("DUMP: " + dump);
System.err.println("GRAPHVIZ: " + MarkovUtil.exportGraphviz(e.getValue(), false, null).writeToTempFile(e.getKey()));
} catch (Exception ex) {
throw new RuntimeException(ex);
}