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);
Pipe sparsepp=new StringArray2SV(af);
//将目标值对应的索引号作为类别
Pipe targetpp = new Target2Label(af.DefaultLabelAlphabet());
//建立pipe组合
SeriesPipes pp = new SeriesPipes(new Pipe[]{ngrampp,targetpp,sparsepp});