Examples of AddCharRange


Examples of org.fnlp.nlp.pipe.seq.AddCharRange

    //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;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.