edu.stanford.nlp.process
Class AbstractListProcessor<IN,OUT>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractListProcessor
public AbstractListProcessor()
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. For example this might be a
list of lists of words.
- 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