|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.process.DocumentProcessor
Processor that takes an Appliable 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 Appliable |
appliable
Appliable used to transform each document element during processing. |
Constructor Summary | |
protected |
DocumentProcessor()
Does nothing but allows subclasses with empty constructor. |
|
DocumentProcessor(Appliable a)
Instantiates a new DocumentProcessor for a given Appliable |
Method Summary | |
Document |
process(Document in)
Converts a Document to a different Document, by transforming or filtering the elements in in using the Appliable 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 Appliable appliable
Constructor Detail |
protected DocumentProcessor()
public DocumentProcessor(Appliable a)
Method Detail |
public Document process(Document in)
process
in interface Processor
DocumentProcessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |