edu.stanford.nlp.process
Class TransformedFilter

java.lang.Object
  extended byedu.stanford.nlp.process.TransformedFilter

public class TransformedFilter
extends Object

Filter that first transforms input before filtering it. An object is accepted iff the given filter accepts its output from the given Function. This is particularly useful when filtering a list of objects, since for example the Function might return a single field or method result from the objects being filtered, and thus the Object could be filtered based on some part of it without having to write a special filter.

Author:
Christopher Manning

Constructor Summary
TransformedFilter()
           
 
Method Summary
static Filter filter(Filter filter, Function appliable)
          Filter that first transforms input before filtering it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformedFilter

public TransformedFilter()
Method Detail

filter

public static Filter filter(Filter filter,
                            Function appliable)
Filter that first transforms input before filtering it. An object is accepted iff the given filter accepts its output from the given Function. This is particularly useful when filtering a list of objects, since for example the Function might return a single field or method result from the objects being filtered, and thus the Object could be filtered based on some part of it without having to write a special filter.



Stanford NLP Group