anl.aida.client.net
Class TFIDFFilterCreator

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

public class TFIDFFilterCreator
extends java.lang.Object
implements TSFilterCreator

Creates a ScorerThresholdFilter that filters based on tf/idf score being >= to some threshold.


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

TFIDFFilterCreator

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