Examples of DictPOSLabel


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

  public void setDictionary(Dictionary dict, boolean isSetSegDict)   {
    removeDictionary(isSetSegDict);
    if(cws != null && isSetSegDict)
      cws.setDictionary(dict);
    dictPipe = null;
    dictPipe = new DictPOSLabel(dict, labels);
    oldfeaturePipe = featurePipe;
    featurePipe = new SeriesPipes(new Pipe[] { dictPipe, featurePipe });
    LinearViterbi dv = new ConstraintViterbi(
        (LinearViterbi) getClassifier().getInferencer(),labels.size());
    getClassifier().setInferencer(dv);
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.