edu.stanford.nlp.process
Class AbstractListProcessor<IN,OUT>

java.lang.Object
  extended by edu.stanford.nlp.process.AbstractListProcessor<IN,OUT>
All Implemented Interfaces:
ListProcessor<IN,OUT>, Processor<IN,OUT>
Direct Known Subclasses:
StripTagsProcessor, WordToSentenceProcessor

public abstract class AbstractListProcessor<IN,OUT>
extends Object
implements ListProcessor<IN,OUT>, Processor<IN,OUT>

Class AbstractListProcessor

Author:
Teg Grenager

Constructor Summary
AbstractListProcessor()
           
 
Method Summary
 Document<OUT> processDocument(Document<IN> in)
          Converts a Document to a different Document, by transforming or filtering the original Document.
 List<List<OUT>> processLists(List<List<IN>> 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<OUT> processDocument(Document<IN> 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<IN,OUT>
See Also:
FunctionProcessor

processLists

public List<List<OUT>> processLists(List<List<IN>> 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