up
Class BracketScorer

java.lang.Object
  extended by up.BracketScorer

public class BracketScorer
extends java.lang.Object

Evaluate the performance of a parser based on bracket scores.


Constructor Summary
BracketScorer()
          Constructs a new scorer.
 
Method Summary
 double getFMeasure()
          Returns the F-measure computed by this scorer.
 double getPrecision()
          Returns the precision computed by this scorer.
 double getRecall()
          Returns the recall computed by this scorer.
 void update(Tree gold, Tree parsed)
          Updates the scores with the specified gold and parsed tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BracketScorer

public BracketScorer()
Constructs a new scorer.

Method Detail

update

public void update(Tree gold,
                   Tree parsed)
Updates the scores with the specified gold and parsed tree.

Parameters:
gold - the gold tree
parsed - the parsed tree

getPrecision

public double getPrecision()
Returns the precision computed by this scorer.

Returns:
the precision computed by this scorer

getRecall

public double getRecall()
Returns the recall computed by this scorer.

Returns:
the recall computed by this scorer

getFMeasure

public double getFMeasure()
Returns the F-measure computed by this scorer.

Returns:
the F-measure computed by this scorer