//使用n元特征
Pipe ngrampp = new NGram(new int[] {2,3});
//将字符特征转换成字典索引;
Pipe sparsepp=new StringArray2SV(af);
//将目标值对应的索引号作为类别
Pipe targetpp = new Target2Label(af.DefaultLabelAlphabet());
//建立pipe组合
SeriesPipes pp = new SeriesPipes(new Pipe[]{removepp,segpp,s2spp,targetpp,sparsepp});
System.out.print("\nReading data......\n");
InstanceSet instset = new InstanceSet(pp,af);