edu.stanford.nlp.process
Class TransformedFilter
java.lang.Object
edu.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransformedFilter
public TransformedFilter()
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