Class CRFTrainerByPR

    • Constructor Detail

      • CRFTrainerByPR

        public CRFTrainerByPR​(CRF crf,
                              java.util.ArrayList<PRConstraint> constraints)
      • CRFTrainerByPR

        public CRFTrainerByPR​(CRF crf,
                              java.util.ArrayList<PRConstraint> constraints,
                              int numThreads)
    • Method Detail

      • setStateLabelMap

        public void setStateLabelMap​(StateLabelMap map)
      • setPGaussianPriorVariance

        public void setPGaussianPriorVariance​(double pGpv)
      • setTolerance

        public void setTolerance​(double tolerance)
      • train

        public boolean train​(InstanceList train,
                             int numIterations)
        Description copied from class: TransducerTrainer
        Train the transducer associated with this TransducerTrainer. You should be able to call this method with different trainingSet objects. Whether this causes the TransducerTrainer to combine both trainingSets or to view the second as a new alternative is at the discretion of the particular TransducerTrainer subclass involved.
        Specified by:
        train in class TransducerTrainer
      • train

        public boolean train​(InstanceList train,
                             int minIter,
                             int maxIter)
      • train

        public boolean train​(InstanceList train,
                             int minIter,
                             int maxIter,
                             int maxIterPerStep)
      • getTotalValue

        public double getTotalValue()
      • getQValue

        public double getQValue()