Package org.fnlp.nlp.pipe.seq

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


   * 是否对英文单词进行预处理,将连续的英文字母看成一个单词
   * @param b
   */
  public void setEnFilter(boolean b){
    isEnFilter = b;
    prePipe = new String2Sequence(isEnFilter);
  }
View Full Code Here


   * @param str 模型文件名
   * @throws LoadModelException
   */
  public CWSTagger(String str) throws LoadModelException {
    super(str);
    prePipe = new String2Sequence(isEnFilter);

    //    DynamicViterbi dv = new DynamicViterbi(
    //        (LinearViterbi) cl.getInferencer(),
    //        cl.getAlphabetFactory().buildLabelAlphabet("labels"),
    //        cl.getAlphabetFactory().buildFeatureAlphabet("features"),
View Full Code Here

TOP

Related Classes of org.fnlp.nlp.pipe.seq.String2Sequence

Copyright © 2018 www.massapicom. 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.