anl.aida.client.net
Class TFFilterCreator

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

public class TFFilterCreator
extends java.lang.Object
implements TSFilterCreator

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


Constructor Summary
TFFilterCreator()
           
 
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

TFFilterCreator

public TFFilterCreator()
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