|
||||||||||
| 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
public class OpenEphyraCorpus
A modified version of OpenEphyra that is optimized for the
TREC evaluation. If no answers are found, the question is assumed to ask for
a proper name and the pipeline is rerun to improve the recall. This setup
extracts answers from the Web and projects them onto a local corpus.
This class extends OpenEphyra.
| Field Summary |
|---|
| Fields inherited from class info.ephyra.OpenEphyra |
|---|
dir, FACTOID_ABS_THRESH, FACTOID_MAX_ANSWERS, LIST_REL_THRESH, NORMALIZER |
| Constructor Summary | |
|---|---|
OpenEphyraCorpus()
|
|
| Method Summary | |
|---|---|
Result[] |
askFactoid(java.lang.String question,
int maxAnswers,
float absThresh)
Asks Ephyra a factoid question and returns up to maxAnswers
results that have a score of at least absThresh. |
Result[] |
askList(java.lang.String question,
float relThresh)
Asks Ephyra a list question and returns results that have a score of at least relThresh * top score. |
protected void |
initFactoidCorpus()
Initializes the pipeline for factoid questions, using a local corpus as a knowledge source. |
protected void |
initFactoidWeb(Result[] resultsCorp)
Initializes the pipeline for factoid questions, using the Web as a knowledge source. |
static void |
main(java.lang.String[] args)
Entry point of Ephyra. |
| 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 |
| Constructor Detail |
|---|
public OpenEphyraCorpus()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - command line arguments are ignoredprotected void initFactoidCorpus()
protected void initFactoidWeb(Result[] resultsCorp)
resultsCorp - results retrieved from the corpus
public Result[] askFactoid(java.lang.String question,
int maxAnswers,
float absThresh)
maxAnswers
results that have a score of at least absThresh. This method
is optimized for the TREC evaluation: if the answer type cannot be
determined and no answers are found, it simply returns a list of proper
names.
askFactoid in class OpenEphyraquestion - factoid questionmaxAnswers - maximum number of answersabsThresh - absolute threshold for scores
public Result[] askList(java.lang.String question,
float relThresh)
relThresh * top score. This method is optimized for
the TREC evaluation: if no answers are found, it simply returns a list
of proper names.
askList in class OpenEphyraquestion - list questionrelThresh - relative threshold for scores
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||