edu.stanford.nlp.process
Class AbstractListProcessor

java.lang.Object
  extended by edu.stanford.nlp.process.AbstractListProcessor
All Implemented Interfaces:
ListProcessor, Processor
Direct Known Subclasses:
PTBEscapingProcessor, StripTagsProcessor, WordToSentenceProcessor, WordToTaggedWordProcessor

public abstract class AbstractListProcessor
extends Object
implements ListProcessor, Processor

Class AbstractListProcessor

Author:
Teg Grenager

Constructor Summary
AbstractListProcessor()
           
 
Method Summary
 Document processDocument(Document in)
          Converts a Document to a different Document, by transforming or filtering the original Document.
 List processLists(List<List> lists)
          Process a list of lists of tokens.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.stanford.nlp.process.ListProcessor
process
 

Constructor Detail

AbstractListProcessor

public AbstractListProcessor()
Method Detail

processDocument

public Document processDocument(Document in)
Description copied from interface: Processor
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.

Specified by:
processDocument in interface Processor
See Also:
FunctionProcessor

processLists

public List processLists(List<List> lists)
Process a list of lists of tokens.

Parameters:
lists - a List of objects of type List
Returns:
a List of objects of type List, each of which has been processed.


Stanford NLP Group