edu.cmu.meteor.scorer
Class MeteorStats

java.lang.Object
  extended by edu.cmu.meteor.scorer.MeteorStats

public class MeteorStats
extends java.lang.Object

Class used to hold several Meteor statistics, including final score


Field Summary
 int chunks
           
 double f1
           
 double fMean
           
 double fragPenalty
           
 double lengthCost
           
 double precision
           
 double recall
           
 int referenceLength
           
 int referenceTotalMatches
           
 java.util.ArrayList<java.lang.Integer> referenceTotalStageMatches
           
 double referenceWeightedMatches
           
 java.util.ArrayList<java.lang.Double> referenceWeightedStageMatches
           
 double score
          Score is required to select the best reference
 int testLength
           
 int testTotalMatches
           
 java.util.ArrayList<java.lang.Integer> testTotalStageMatches
           
 double testWeightedMatches
          Note: these do include module weights
 java.util.ArrayList<java.lang.Double> testWeightedStageMatches
          Note: these are weighted by the probability from the matcher, not the weight for the module.
 
Constructor Summary
MeteorStats()
           
MeteorStats(java.lang.String ssString)
          Use a string from the toString() method to create a MeteorStats object.
 
Method Summary
 void addStats(MeteorStats ss)
          Aggregate SS (except score), result stored in this instance
 java.lang.String toString()
           
 java.lang.String toString(java.lang.String delim)
          Stats are output in lines: tstLen refLen stage1tstTotalMatches stage1refTotalMatches stage1tstWeightedMatches stage1refWeightedMatches s2tTM s2rTM s2tWM s2rWM s3tTM s3rTM s3tWM s3rWM s4tTM s4rTM s4tWM s4rWM chunks lenCost ex: 15 14 8 8 8.0 8.0 2 2 2.0 2.0 1 1 1.0 1.0 3 2 0.6 0.4 3 0.25
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

testLength

public int testLength

referenceLength

public int referenceLength

testTotalMatches

public int testTotalMatches

referenceTotalMatches

public int referenceTotalMatches

testTotalStageMatches

public java.util.ArrayList<java.lang.Integer> testTotalStageMatches

referenceTotalStageMatches

public java.util.ArrayList<java.lang.Integer> referenceTotalStageMatches

testWeightedStageMatches

public java.util.ArrayList<java.lang.Double> testWeightedStageMatches
Note: these are weighted by the probability from the matcher, not the weight for the module. This way, alignment stats can be rescored using different module weights (in tuning, for example)


referenceWeightedStageMatches

public java.util.ArrayList<java.lang.Double> referenceWeightedStageMatches

chunks

public int chunks

lengthCost

public double lengthCost

testWeightedMatches

public double testWeightedMatches
Note: these do include module weights


referenceWeightedMatches

public double referenceWeightedMatches

precision

public double precision

recall

public double recall

f1

public double f1

fMean

public double fMean

fragPenalty

public double fragPenalty

score

public double score
Score is required to select the best reference

Constructor Detail

MeteorStats

public MeteorStats()

MeteorStats

public MeteorStats(java.lang.String ssString)
Use a string from the toString() method to create a MeteorStats object.

Parameters:
ssString -
Method Detail

addStats

public void addStats(MeteorStats ss)
Aggregate SS (except score), result stored in this instance

Parameters:
ss -

toString

public java.lang.String toString(java.lang.String delim)
Stats are output in lines: tstLen refLen stage1tstTotalMatches stage1refTotalMatches stage1tstWeightedMatches stage1refWeightedMatches s2tTM s2rTM s2tWM s2rWM s3tTM s3rTM s3tWM s3rWM s4tTM s4rTM s4tWM s4rWM chunks lenCost ex: 15 14 8 8 8.0 8.0 2 2 2.0 2.0 1 1 1.0 1.0 3 2 0.6 0.4 3 0.25

Parameters:
delim -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object