anl.aida.client.net
Class SimilarityFilterCreator

java.lang.Object
  extended by anl.aida.client.net.SimilarityFilterCreator
All Implemented Interfaces:
TSFilterCreator

public class SimilarityFilterCreator
extends java.lang.Object
implements TSFilterCreator

Creates a ScorerThresholdFilter that filters based on similarity being >= to some threshold.


Constructor Summary
SimilarityFilterCreator()
           
 
Method Summary
 anl.aida.score.TermScoreFilter createFilter(CacheElement element, float val)
          Creates a TermScoreFilter using the element and val.
 java.lang.String getLabel()
          Gets a label for this creator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimilarityFilterCreator

public SimilarityFilterCreator()
Method Detail

getLabel

public java.lang.String getLabel()
Gets a label for this creator.

Specified by:
getLabel in interface TSFilterCreator
Returns:

createFilter

public anl.aida.score.TermScoreFilter createFilter(CacheElement element,
                                                   float val)
Creates a TermScoreFilter using the element and val.

Specified by:
createFilter in interface TSFilterCreator
Parameters:
element - the element to use -- getSTC etc from
val - a value to use (e.g. threshold).
Returns:
the created TermScoreFilter