edu.stanford.nlp.process
Interface Processor<IN,OUT>

All Known Implementing Classes:
AbstractListProcessor, PTBEscapingProcessor, StripTagsProcessor, WordToSentenceProcessor, WordToTaggedWordProcessor

public interface Processor<IN,OUT>

Top-level interface for transforming Documents.

Author:
Sepandar Kamvar (sdkamvar@stanford.edu)
See Also:
processDocument(edu.stanford.nlp.ling.Document)

Method Summary
 Document<OUT> processDocument(Document<IN> in)
          Converts a Document to a different Document, by transforming or filtering the original Document.
 

Method Detail

processDocument

Document<OUT> processDocument(Document<IN> in)
Converts a Document to a different Document, by transforming or filtering the original Document. The general contract of this method is to not modify the in Document in any way, and to preserve the metadata of the in Document in the returned Document.

See Also:
FunctionProcessor


Stanford NLP Group