Package sequence

Examples of sequence.CRF.batchTrain()


  }

  public static LinearTagger trainCRF(ArrayList<SequenceInstance> train,
      Alphabet xA, Alphabet yA) {
    CRF crf = new CRF(10, xA, yA, new OneYwithXFeatureFunction(xA, yA));
    LinearTagger h = crf.batchTrain(train);
    return h;
  }

}
View Full Code Here


  private LinearTagger trainCRF(ArrayList<SequenceInstance> data,
      Alphabet xA, Alphabet yA) {

    CRF crf = new CRF(10, xA, yA, new OneYwithXFeatureFunction(xA, yA));
    return crf.batchTrain(data);
  }

  @SuppressWarnings("unused")
  private LinearTagger trainMira(ArrayList<SequenceInstance> data,
      Alphabet xA, Alphabet yA, int numIters, boolean doAveraging) {
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.