Class MaxEntScorer


  • public class MaxEntScorer
    extends Scorer
    • Field Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      MaxEntScorer​(java.io.File modelFile)  
      MaxEntScorer​(java.io.InputStream is)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getScore​(java.lang.String term1, java.lang.String term2)
      get the score for an unlabeled pair
      int getScorerType()  
      java.lang.String info()  
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

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

      • MaxEntScorer

        public MaxEntScorer​(java.io.InputStream is)
      • MaxEntScorer

        public MaxEntScorer​(java.io.File modelFile)
    • Method Detail

      • getScore

        public double getScore​(java.lang.String term1,
                               java.lang.String term2)
                        throws java.lang.RuntimeException
        get the score for an unlabeled pair
        Specified by:
        getScore in class Scorer
        Parameters:
        term1 - term 1 (needs to be normalized!)
        term2 - term 2 (needs to be normalized!)
        Returns:
        Throws:
        java.lang.Exception
        java.lang.RuntimeException
      • main

        public static void main​(java.lang.String[] args)
      • info

        public java.lang.String info()
        Specified by:
        info in class Scorer