|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.ephyra.answerselection.filters.Filter
info.ephyra.answerselection.filters.NuggetEvaluationFilter
public class NuggetEvaluationFilter
Automatically evaluates answer candidates for the 'other' questions in TREC 13-16.
This class extends the class Filter.
| Field Summary | |
|---|---|
private static java.lang.String |
baseFileName
|
private java.lang.String |
conciseFileName
|
private static java.lang.String |
DEFAULT_EXPORT_DATE_FORMAT
|
private static java.text.DateFormat |
EXPORT_DATE_FORMATTER
|
private java.lang.String |
fileName
|
private java.lang.String |
fileNameMarker
|
private static java.util.HashMap<java.lang.String,NuggetEvaluationFilter> |
instanceSet
|
private int[] |
lastOk
|
private java.lang.String |
lastTarget
|
private int[] |
lastVital
|
private java.util.ArrayList<TRECNugget> |
nuggets
|
private static java.util.HashMap<java.lang.String,java.util.ArrayList<TRECNugget>> |
nuggetsByTargetID
|
private static int |
numVital
|
private java.lang.String |
targetId
|
private static java.lang.String |
targetID
|
| Constructor Summary | |
|---|---|
NuggetEvaluationFilter()
|
|
NuggetEvaluationFilter(java.lang.String fileNameMarker)
|
|
| Method Summary | |
|---|---|
Result |
apply(Result result)
This method is not used. |
Result[] |
apply(Result[] results)
Extracts NEs of particular types from the answer strings of the Result objects and creates a new Result for
each extracted unique answer. |
private java.lang.String[] |
covers(java.lang.String result,
java.lang.String nugget)
check if some result covers some nugger |
TRECNugget[] |
getNuggets()
|
private static void |
loadNuggets()
load the nuggets from the answer file |
private void |
setTargetId(java.lang.String tid)
|
static void |
setTargetID(java.lang.String tid)
set the ID of the next target, so upcoming results can be checked against the respective nuggets |
static void |
targetFinished()
gather data from instances and write it to global log file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String DEFAULT_EXPORT_DATE_FORMAT
private static final java.text.DateFormat EXPORT_DATE_FORMATTER
private static final java.lang.String baseFileName
private java.lang.String fileNameMarker
private java.lang.String fileName
private java.lang.String conciseFileName
private java.lang.String lastTarget
private static java.util.HashMap<java.lang.String,NuggetEvaluationFilter> instanceSet
private static java.lang.String targetID
private java.lang.String targetId
private java.util.ArrayList<TRECNugget> nuggets
private static int numVital
private int[] lastVital
private int[] lastOk
private static java.util.HashMap<java.lang.String,java.util.ArrayList<TRECNugget>> nuggetsByTargetID
| Constructor Detail |
|---|
public NuggetEvaluationFilter()
public NuggetEvaluationFilter(java.lang.String fileNameMarker)
| Method Detail |
|---|
public Result apply(Result result)
apply(Result[])
from the superclass Filter is overwritten.
apply in class Filterresult - a Result object
Result objectpublic Result[] apply(Result[] results)
Result objects and creates a new Result for
each extracted unique answer.
apply in class Filterresults - array of Result objects
Result objects
private java.lang.String[] covers(java.lang.String result,
java.lang.String nugget)
result - the result Stringnugget - the nugget string
public static void setTargetID(java.lang.String tid)
tid - the ID of the next targetpublic static void targetFinished()
private void setTargetId(java.lang.String tid)
public TRECNugget[] getNuggets()
private static void loadNuggets()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||