|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.process.FunctionProcessor
Processor that takes an Function and applies to every element in the input Document. This is useful when you want to transform each element in an isolated way.
Field Summary | |
protected Function |
appliable
Function used to transform each document element during processing. |
Constructor Summary | |
protected |
FunctionProcessor()
Does nothing but allows subclasses with empty constructor. |
|
FunctionProcessor(Function a)
Instantiates a new FunctionProcessor for a given Function |
Method Summary | |
Document |
process(Document in)
Converts a Document to a different Document, by transforming or filtering the elements in in using the Function given in the constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Function appliable
Constructor Detail |
protected FunctionProcessor()
public FunctionProcessor(Function a)
Method Detail |
public Document process(Document in)
process
in interface Processor
FunctionProcessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |