@Test
public void testStartClustering() {
WordCluster wc = new WordCluster();
wc.slotsize =6;
String[] strs = new String[]{"猪肉","狗肉","狗头","鸡头","猪头","鸡肉"};
StringReader r = new StringReader(strs );
wc.read(r);
try {
Cluster root = wc.startClustering();
DrawTree.printTree(root,"../tmp/t.png");
wc.saveModel("../tmp/t.m");
wc.saveTxt("../tmp/t.txt");
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (Exception e) {
// TODO Auto-generated catch block