|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEvalE
public class EvalE
Standalone class for evaluation for XML-formatted event files.
This class is meant to be invoked from the command line with two parameters: the gold file path and the test file path. If needed, it could also be instanciated as a Java object, but is primarily not written for this usage. The test files are a file with distilled events from EvEx. The syntax format for GOLD and TEST is equal.
Distilled events are defined between
EvEx
,
Anto
,
Syno
Nested Class Summary | |
---|---|
class |
EvalE.EvalEvent
Conatiner class to hold parsed events |
class |
EvalE.EvalTHandler
Internal class to parse the distilled xml event file. |
Field Summary | |
---|---|
Anto |
anto
|
java.io.File |
genfile
|
EvalE.EvalTHandler |
genhandler
|
Syno |
syno
|
java.io.File |
tqlfile
|
EvalE.EvalTHandler |
tqlhandler
|
Constructor Summary | |
---|---|
EvalE(java.lang.String genfile_name,
java.lang.String tqlfile_name)
The constructor of EvalE enables it to be invoked from another class if needed. |
Method Summary | |
---|---|
void |
eval()
The method for performing evaluation of events. |
int |
intDiv(int x,
int y)
|
boolean |
intervention(java.lang.String ge,
java.lang.String te)
Intervention is a method for comparing two strings. |
static void |
main(java.lang.String[] args)
Static method allowing invocation of this class from command line. |
void |
makeParser()
Method to invoke parsing of the xml event files. |
java.lang.String |
perc(int x,
int y)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.io.File genfile
public java.io.File tqlfile
public EvalE.EvalTHandler genhandler
public EvalE.EvalTHandler tqlhandler
public Syno syno
public Anto anto
Constructor Detail |
---|
public EvalE(java.lang.String genfile_name, java.lang.String tqlfile_name)
genfile_name
- the path to gold-file in distilled formattqlfile_name
- the path to test-file in distilled formatMethod Detail |
---|
public static void main(java.lang.String[] args)
public void eval()
public boolean intervention(java.lang.String ge, java.lang.String te)
ge
- the gold wordte
- the test word
public void makeParser()
public int intDiv(int x, int y)
public java.lang.String perc(int x, int y)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |