|
||||||||||
| 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.EphyraTREC13To16
public class EphyraTREC13To16
Runs and evaluates Ephyra on the data from the TREC 13-16 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 |
factoidLog
Load answers to factoid questions from log file? |
private static TRECPattern[] |
factoidPatterns
Patterns for factoid questions (optional). |
private static java.util.ArrayList<java.lang.Float> |
factoidQuestionScores
Scores for the factoid questions within a target. |
private static java.util.ArrayList<java.lang.Float> |
factoidTargetScores
Factoid scores for the targets. |
private static java.lang.String |
inputLogFile
Log file used as a source for answers to some of the questions. |
protected static float |
LIST_REL_THRESH
Relative threshold for list question scores (fraction of top score). |
private static boolean |
listLog
Load answers to list questions from log file? |
private static TRECPattern[] |
listPatterns
Patterns for list questions (optional). |
private static java.util.ArrayList<java.lang.Float> |
listQuestionScores
Scores for the list questions within a target. |
private static java.util.ArrayList<java.lang.Float> |
listTargetScores
List scores for the targets. |
private static java.lang.String |
logFile
Log file for the results returned by Ephyra. |
private static boolean |
otherLog
Load answers to "Other" questions from log file? |
private static java.lang.String |
runTag
Tag that uniquely identifies the run (also used as output file name). |
private static TRECTarget[] |
targets
Target objects containing the TREC questions. |
| Fields inherited from class info.ephyra.OpenEphyra |
|---|
dir, NORMALIZER |
| Constructor Summary | |
|---|---|
EphyraTREC13To16()
|
|
| Method Summary | |
|---|---|
Result[] |
askOther(java.lang.String question)
Asks Ephyra an 'other' question. |
Result[] |
askOther(TRECTarget target)
Asks Ephyra an 'other' question, making use of the target description and previous questions and answers. |
private static boolean[] |
evalFactoidQuestion(java.lang.String qid,
Result[] results,
float absThresh)
Calculates the score for a single factoid question. |
private static float |
evalFactoidTarget()
Calculates the factoid score for the current target. |
private static float |
evalFactoidTotal(float absThresh)
Calculates the total score for the factoid component and logs the score. |
private static boolean[] |
evalListQuestion(java.lang.String qid,
Result[] results,
float relThresh)
Calculates the score for a single list question. |
private static float |
evalListTarget()
Calculates the list score for the current target. |
private static float |
evalListTotal(float relThresh)
Calculates the total score for the list component and logs the score. |
protected void |
initOther()
Initializes the pipeline for 'other' questions. |
static void |
main(java.lang.String[] args)
Runs Ephyra on the TREC questions. |
private static void |
runAndEval()
Initializes Ephyra, asks the questions or loads the answers from a log file, evaluates the answers if patterns are available and logs and saves 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
protected static final float LIST_REL_THRESH
private static TRECTarget[] targets
private static java.lang.String runTag
private static java.lang.String logFile
private static java.lang.String inputLogFile
private static boolean factoidLog
private static boolean listLog
private static boolean otherLog
private static TRECPattern[] factoidPatterns
private static TRECPattern[] listPatterns
private static java.util.ArrayList<java.lang.Float> factoidQuestionScores
private static java.util.ArrayList<java.lang.Float> listQuestionScores
private static java.util.ArrayList<java.lang.Float> factoidTargetScores
private static java.util.ArrayList<java.lang.Float> listTargetScores
| Constructor Detail |
|---|
public EphyraTREC13To16()
| Method Detail |
|---|
private static boolean[] evalFactoidQuestion(java.lang.String qid,
Result[] results,
float absThresh)
qid - ID of the questionresults - the results from EphyraabsThresh - absolute confidence threshold for results
private static boolean[] evalListQuestion(java.lang.String qid,
Result[] results,
float relThresh)
qid - ID of the questionresults - the results from EphyrarelThresh - relative confidence threshold for results
private static float evalFactoidTarget()
-1 if there are no factoid questionsprivate static float evalListTarget()
-1 if there are no list questionsprivate static float evalFactoidTotal(float absThresh)
absThresh - absolute confidence threshold for results
-1 if there are no factoid questionsprivate static float evalListTotal(float relThresh)
relThresh - relative confidence threshold for results
-1 if there are no list questionsprivate static void runAndEval()
public static void main(java.lang.String[] args)
args - argument 1: questionfileprotected void initOther()
public final Result[] askOther(java.lang.String question)
question - other question
public Result[] askOther(TRECTarget target)
target - the target the 'other' question is about
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||