Class SimpleScorer


  • public class SimpleScorer
    extends Scorer
    • Field Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleScorer()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getMaxLenDiffScore​(java.lang.String term1, java.lang.String term2)  
      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

      • SimpleScorer

        public SimpleScorer()
    • Method Detail

      • getScore

        public double getScore​(java.lang.String term1,
                               java.lang.String term2)
        get the score for an unlabeled pair
        Specified by:
        getScore in class Scorer
        Parameters:
        term1 - the original term in text
        term2 - the synonym found in db
        Returns:
        Throws:
        java.lang.Exception
      • getMaxLenDiffScore

        public double getMaxLenDiffScore​(java.lang.String term1,
                                         java.lang.String term2)
      • info

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

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