|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectup.BracketScorer
public class BracketScorer
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 |
---|
public BracketScorer()
Method Detail |
---|
public void update(Tree gold, Tree parsed)
gold
- the gold treeparsed
- the parsed treepublic double getPrecision()
public double getRecall()
public double getFMeasure()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |