Package org.fnlp.ml.classifier.struct.inf

Examples of org.fnlp.ml.classifier.struct.inf.ConstraintViterbi


      dictPipe = new DictLabel(dict, labels);

    oldfeaturePipe = featurePipe;
    featurePipe = new SeriesPipes(new Pipe[] { dictPipe, featurePipe });

    LinearViterbi dv = new ConstraintViterbi(
        (LinearViterbi) getClassifier().getInferencer());
    getClassifier().setInferencer(dv);
  }
View Full Code Here


      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

Related Classes of org.fnlp.ml.classifier.struct.inf.ConstraintViterbi

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.