|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.ephyra.OpenEphyra
info.ephyra.trec.OpenEphyraCorpus
info.ephyra.trec.EphyraTREC8To11
public class EphyraTREC8To11
Runs and evaluates Ephyra on the data from the TREC 8-11 QA tracks.
This class extends OpenEphyraCorpus.
| Field Summary | |
|---|---|
protected static float |
FACTOID_ABS_THRESH
Absolute threshold for factoid question scores. |
protected static int |
FACTOID_MAX_ANSWERS
Maximum number of factoid answers. |
private static boolean |
loadLog
Load answers from log file? |
private static java.lang.String |
logFile
Log file for the results returned by Ephyra. |
protected static java.lang.String[] |
qss
Question strings. |
protected static java.lang.String[] |
regexs
Corresponding regular expressions that describe correct answers. |
| Fields inherited from class info.ephyra.OpenEphyra |
|---|
dir, LIST_REL_THRESH, NORMALIZER |
| Constructor Summary | |
|---|---|
EphyraTREC8To11()
|
|
| Method Summary | |
|---|---|
private static void |
loadTRECData(java.lang.String qFile,
java.lang.String pFile)
Loads questions and patterns from files. |
static void |
main(java.lang.String[] args)
Runs and evaluates Epyhra on TREC data. |
private static void |
runAndEval()
Initializes Ephyra, asks the questions and evaluates and logs the answers. |
| Methods inherited from class info.ephyra.trec.OpenEphyraCorpus |
|---|
askFactoid, askList, initFactoidCorpus, initFactoidWeb |
| Methods inherited from class info.ephyra.OpenEphyra |
|---|
askFactoid, commandLine, getDir, initFactoid, readLine, runPipeline |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int FACTOID_MAX_ANSWERS
protected static final float FACTOID_ABS_THRESH
private static java.lang.String logFile
private static boolean loadLog
protected static java.lang.String[] qss
protected static java.lang.String[] regexs
| Constructor Detail |
|---|
public EphyraTREC8To11()
| Method Detail |
|---|
private static void loadTRECData(java.lang.String qFile,
java.lang.String pFile)
qFile - name of the question filepFile - name of the pattern fileprivate static void runAndEval()
public static void main(java.lang.String[] args)
args - argument 1: name of the question file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||