|
||||||||||
| 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.OverlapAnalysisFilter
public class OverlapAnalysisFilter
Generates overlap analyses for different answer extraction strategies. The filter can be added at more than one point in the pipeline, using different IDs to generate independent analyses.
This class extends the class Filter.
| Field Summary | |
|---|---|
private static java.util.Hashtable<java.lang.String,java.util.Hashtable<java.lang.String,java.lang.Integer>> |
analyses
Overlap analyses, usually at different points in the pipeline. |
private java.util.Hashtable<java.lang.String,java.lang.Integer> |
overlapAnalysis
Current overlap analysis. |
private static TRECPattern |
pattern
Pattern used to evaluate answer candidates. |
private boolean |
printing
If this flag is set, an overlap analysis is printed every time the filter is applied. |
| Constructor Summary | |
|---|---|
OverlapAnalysisFilter(java.lang.String id,
boolean printing)
Creates the filter and adds an overlap analysis for the given ID if it did not occur before. |
|
| Method Summary | |
|---|---|
Result[] |
apply(Result[] results)
Evaluates the answer candidates and updates the current overlap analysis. |
java.util.Hashtable<java.lang.String,java.lang.Integer> |
getOverlapAnalysis()
Returns the current overlap analysis. |
void |
printOverlapAnalysis()
Prints the current overlap analysis. |
static void |
setPattern(TRECPattern pattern)
Sets the current pattern used to evaluate answer candidates. |
| Methods inherited from class info.ephyra.answerselection.filters.Filter |
|---|
apply |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static TRECPattern pattern
private static java.util.Hashtable<java.lang.String,java.util.Hashtable<java.lang.String,java.lang.Integer>> analyses
private java.util.Hashtable<java.lang.String,java.lang.Integer> overlapAnalysis
private boolean printing
| Constructor Detail |
|---|
public OverlapAnalysisFilter(java.lang.String id,
boolean printing)
id - overlap analysis IDprinting - enable printing flag| Method Detail |
|---|
public static void setPattern(TRECPattern pattern)
pattern - evaluation patternpublic java.util.Hashtable<java.lang.String,java.lang.Integer> getOverlapAnalysis()
public void printOverlapAnalysis()
public Result[] apply(Result[] results)
apply in class Filterresults - array of Result objects
Result objects
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||