info.ephyra.trec
Class OpenEphyraCorpus

java.lang.Object
  extended by info.ephyra.OpenEphyra
      extended by info.ephyra.trec.OpenEphyraCorpus
Direct Known Subclasses:
EphyraTREC13To16, EphyraTREC8To11

public class OpenEphyraCorpus
extends OpenEphyra

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.

Version:
2008-01-26
Author:
Nico Schlaefer

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

OpenEphyraCorpus

public OpenEphyraCorpus()
Method Detail

main

public static void main(java.lang.String[] args)
Entry point of Ephyra. Initializes the engine and starts the command line interface.

Parameters:
args - command line arguments are ignored

initFactoidCorpus

protected void initFactoidCorpus()
Initializes the pipeline for factoid questions, using a local corpus as a knowledge source.


initFactoidWeb

protected void initFactoidWeb(Result[] resultsCorp)
Initializes the pipeline for factoid questions, using the Web as a knowledge source.

Parameters:
resultsCorp - results retrieved from the corpus

askFactoid

public 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. 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.

Overrides:
askFactoid in class OpenEphyra
Parameters:
question - factoid question
maxAnswers - maximum number of answers
absThresh - absolute threshold for scores
Returns:
array of results

askList

public 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. This method is optimized for the TREC evaluation: if no answers are found, it simply returns a list of proper names.

Overrides:
askList in class OpenEphyra
Parameters:
question - list question
relThresh - relative threshold for scores
Returns:
array of results