info.ephyra.answerselection.filters
Class ScoreCombinationFilter

java.lang.Object
  extended by info.ephyra.answerselection.filters.Filter
      extended by info.ephyra.answerselection.filters.ScoreCombinationFilter

public class ScoreCombinationFilter
extends Filter

The ScoreCombinationFilter combines the normalized scores of an answer extracted with several techniques into a single score.

This class extends the class Filter.

Version:
2007-05-19
Author:
Nico Schlaefer

Constructor Summary
ScoreCombinationFilter()
           
 
Method Summary
 Result[] apply(Result[] results)
          Filters an array of Result objects.
protected  float combANZ(float[] scores, int totalExtractors)
          Combines normalized scores using CombANZ.
protected  float combCP(float[] scores, int totalExtractors)
          Combines normalized scores using complementary probabilities.
protected  float combMAX(float[] scores, int totalExtractors)
          Combines normalized scores using CombMAX.
protected  float combMED(float[] scores, int totalExtractors)
          Combines normalized scores using CombMED.
protected  float combMIN(float[] scores, int totalExtractors)
          Combines normalized scores using CombMIN.
protected  float combMNZ(float[] scores, int totalExtractors)
          Combines normalized scores using CombANZ.
protected  float combSUM(float[] scores, int totalExtractors)
          Combines normalized scores using CombSUM.
 
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
 

Constructor Detail

ScoreCombinationFilter

public ScoreCombinationFilter()
Method Detail

combMIN

protected float combMIN(float[] scores,
                        int totalExtractors)
Combines normalized scores using CombMIN.

Parameters:
scores - scores from all extractors that got the answer
totalExtractors - total number of extractors

combMED

protected float combMED(float[] scores,
                        int totalExtractors)
Combines normalized scores using CombMED.

Parameters:
scores - scores from all extractors that got the answer
totalExtractors - total number of extractors

combMAX

protected float combMAX(float[] scores,
                        int totalExtractors)
Combines normalized scores using CombMAX.

Parameters:
scores - scores from all extractors that got the answer
totalExtractors - total number of extractors

combSUM

protected float combSUM(float[] scores,
                        int totalExtractors)
Combines normalized scores using CombSUM.

Parameters:
scores - scores from all extractors that got the answer
totalExtractors - total number of extractors

combANZ

protected float combANZ(float[] scores,
                        int totalExtractors)
Combines normalized scores using CombANZ.

Parameters:
scores - scores from all extractors that got the answer
totalExtractors - total number of extractors

combMNZ

protected float combMNZ(float[] scores,
                        int totalExtractors)
Combines normalized scores using CombANZ.

Parameters:
scores - scores from all extractors that got the answer
totalExtractors - total number of extractors

combCP

protected float combCP(float[] scores,
                       int totalExtractors)
Combines normalized scores using complementary probabilities.

Parameters:
scores - scores from all extractors that got the answer
totalExtractors - total number of extractors

apply

public Result[] apply(Result[] results)
Filters an array of Result objects.

Overrides:
apply in class Filter
Parameters:
results - results to filter
Returns:
filtered results