System.out.println("类别:"+ res);
//建立字典管理器
AlphabetFactory af = AlphabetFactory.buildFactory();
//使用n元特征
Pipe ngrampp = new NGram(new int[] {1,2});
//分词
// CWSTagger tag = new CWSTagger("../models/seg.m");
// Pipe segpp=new CNPipe(tag);
//将字符特征转换成字典索引
Pipe indexpp = new StringArray2IndexArray(af);