Package cc.mallet.fst

Class CRFWriter

  • public class CRFWriter
    extends TransducerEvaluator
    Saves a trained model to specified filename.

    Can be used to save the model every few iterations, e.g. to save every 5 iterations:

    new CRFWriter(filePrefix) { public boolean precondition (TransducerTrainer tt) { return tt.getIteration() % 5 == 0; };

    The trained model is saved in the format: filenamePrefix..bin.

    Gaurav Chandalia