edu.illinois.cs.cogcomp.lbj.coref.ir.scores
Class FScore
java.lang.Object
edu.illinois.cs.cogcomp.lbj.coref.ir.scores.Score
edu.illinois.cs.cogcomp.lbj.coref.ir.scores.FScore
public class FScore
- extends Score
Stores correctPredictionCount, PredictionCount, and targetCount,
and calculates and returns Precision, Recall, and F-Measure.
Constructor Summary |
FScore()
|
FScore(double precision,
double recall)
|
FScore(int targetCount)
|
FScore(int correctPredictions,
int targets,
int predictions)
|
Methods inherited from class edu.illinois.cs.cogcomp.lbj.coref.ir.scores.Score |
toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_correctPredictions
private int m_correctPredictions
m_targets
private int m_targets
m_predictions
private int m_predictions
m_precision
private double m_precision
m_recall
private double m_recall
FScore
public FScore()
FScore
public FScore(int targetCount)
FScore
public FScore(double precision,
double recall)
FScore
public FScore(int correctPredictions,
int targets,
int predictions)
updatePR
private void updatePR()
recordCorrectPrediction
public void recordCorrectPrediction()
recordMistakenPrediction
public void recordMistakenPrediction()
setTargetCount
public void setTargetCount(int targets)
getPrecision
public double getPrecision()
getRecall
public double getRecall()
getF1
public double getF1()
getScoreDouble
public double getScoreDouble()
- Specified by:
getScoreDouble
in class Score
getScoreString
public java.lang.String getScoreString()
- Specified by:
getScoreString
in class Score