Class MaxEntScorerML


  • public class MaxEntScorerML
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      MaxEntScorerML()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void eval​(cc.mallet.classify.Classifier model, cc.mallet.types.InstanceList pairList)  
      cc.mallet.types.InstanceList makeInstances​(java.util.ArrayList<java.lang.String[]> pairList)  
      cc.mallet.types.InstanceList makeInstances​(java.util.ArrayList<java.lang.String[]> pairList, cc.mallet.pipe.Pipe pipe)  
      double predict​(cc.mallet.types.Instance inst, cc.mallet.classify.Classifier model)
      return the probability of the true class
      cc.mallet.classify.Classifier train​(cc.mallet.types.InstanceList iList)
      train the classifier
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MaxEntScorerML

        public MaxEntScorerML()
    • Method Detail

      • makeInstances

        public cc.mallet.types.InstanceList makeInstances​(java.util.ArrayList<java.lang.String[]> pairList,
                                                          cc.mallet.pipe.Pipe pipe)
      • makeInstances

        public cc.mallet.types.InstanceList makeInstances​(java.util.ArrayList<java.lang.String[]> pairList)
      • train

        public cc.mallet.classify.Classifier train​(cc.mallet.types.InstanceList iList)
        train the classifier
        Parameters:
        iList -
        Returns:
        the classifier
      • predict

        public double predict​(cc.mallet.types.Instance inst,
                              cc.mallet.classify.Classifier model)
        return the probability of the true class
        Parameters:
        inst -
        model -
        Returns:
        probability
      • eval

        public void eval​(cc.mallet.classify.Classifier model,
                         cc.mallet.types.InstanceList pairList)