Class MaxEntScorer
- java.lang.Object
-
- de.julielab.geneexpbase.scoring.Scorer
-
- de.julielab.gene.candidateretrieval.scoring.MaxEntScorer
-
public class MaxEntScorer extends de.julielab.geneexpbase.scoring.Scorer
-
-
Constructor Summary
Constructors Constructor Description MaxEntScorer(File modelFile)MaxEntScorer(InputStream is)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetScore(String term1, String term2)get the score for an unlabeled pairintgetScorerType()Stringinfo()static voidmain(String[] args)
-
-
-
Constructor Detail
-
MaxEntScorer
public MaxEntScorer(InputStream is)
-
MaxEntScorer
public MaxEntScorer(File modelFile)
-
-
Method Detail
-
getScore
public double getScore(String term1, String term2) throws RuntimeException
get the score for an unlabeled pair- Specified by:
getScorein classde.julielab.geneexpbase.scoring.Scorer- Parameters:
term1- term 1 (needs to be normalized!)term2- term 2 (needs to be normalized!)- Returns:
- Throws:
ExceptionRuntimeException
-
main
public static void main(String[] args)
-
info
public String info()
- Specified by:
infoin classde.julielab.geneexpbase.scoring.Scorer
-
getScorerType
public int getScorerType()
- Specified by:
getScorerTypein classde.julielab.geneexpbase.scoring.Scorer
-
-