//TODO: 修改字典类型
AlphabetFactory.defaultFeatureType = Type.String;
// 将样本通过Pipe抽取特征
features = factory.DefaultFeatureAlphabet();
featurePipe = new Sequence2FeatureSequence(templets, features, labels);
AddCharRange typePip = new AddCharRange();
Pipe weightPipe = new WeightPipe(true);
Pipe pipe = new SeriesPipes(new Pipe[] { new Target2Label(labels), typePip, featurePipe, weightPipe });
return pipe;
}