|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEvaluator
public class Evaluator
This class performs evaluations of the events affilated with a sentence. It is normally instantiated from EvEx. The justification for this class is documented in the main report, chapter "Implementation". Definition: Precision = TP/(FP+TP) = TP/(All guesses) Definition: Recall = TP/(TP+FN) = TP/(All actual events) Definition: F-score = 2*P*R/(P+R)
Anto
,
Syno
,
GSentence
,
TQL
,
XMLWriter
,
EvEx
Field Summary | |
---|---|
Anto |
anto
|
boolean |
debug_eval
|
GSentence |
g
|
java.util.ArrayList |
g_events
|
int |
g_total
|
EvEx |
parent
|
Syno |
syno
|
TQL |
t
|
int |
t_all_correct
|
int |
t_cause_correct
|
int |
t_cause_total
|
java.util.ArrayList |
t_events
|
int |
t_theme_correct
|
int |
t_theme_total
|
int |
t_total
|
int |
t_type_correct
|
int |
t_type_total
|
XMLWriter |
xw
|
Constructor Summary | |
---|---|
Evaluator(GSentence g,
TQL t,
EvEx parent,
Syno syno,
Anto anto,
XMLWriter xw)
Create a new evaluation for the sentence defined by GSentence and TQL. |
Method Summary | |
---|---|
void |
echoEvaluation(GEvent ge,
Event te)
Simple method to echo the evaulation to stdout |
void |
eval()
Wrapper method to start evaluation. |
void |
evalAuto()
Method to evaluate the events in a given sentence. |
int |
getTypeAhead(java.lang.String t_type,
int g)
Assisting method to determine how far ahead one have to skip to get to a given type in the golden array. |
void |
hello()
Simple method for echoing an evaluation. |
boolean |
intervention(java.lang.String ge,
java.lang.String te)
Method to determine if two strings are "equal". |
boolean |
isAhead(java.lang.String t_type,
int g)
Assisting method to determine is an event type is ahead in the golden array of events. |
boolean |
isHit(java.lang.String ge,
java.lang.String te)
Wrapper method to ensure backward compatibility with evalManual(); Invokes intervention(); |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public GSentence g
public TQL t
public java.util.ArrayList g_events
public java.util.ArrayList t_events
public EvEx parent
public Syno syno
public Anto anto
public XMLWriter xw
public boolean debug_eval
public int g_total
public int t_total
public int t_type_correct
public int t_theme_correct
public int t_cause_correct
public int t_all_correct
public int t_type_total
public int t_theme_total
public int t_cause_total
Constructor Detail |
---|
public Evaluator(GSentence g, TQL t, EvEx parent, Syno syno, Anto anto, XMLWriter xw)
g
- the sentence from GOLDt
- the sentende from TESTsyno
- the synonyme classanto
- the antonyme classxw
- the writer for outputting distilled eventsMethod Detail |
---|
public void eval()
public void evalAuto()
public boolean isHit(java.lang.String ge, java.lang.String te)
intervention(String, String)
public void echoEvaluation(GEvent ge, Event te)
public boolean intervention(java.lang.String ge, java.lang.String te)
ge
- the GOLD wordte
- the TEST wordSyno
,
Anto
public void hello()
public boolean isAhead(java.lang.String t_type, int g)
public int getTypeAhead(java.lang.String t_type, int g)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |