edu.stanford.nlp.process
Class AbstractListProcessor<IN,OUT,L,F>
java.lang.Object
edu.stanford.nlp.process.AbstractListProcessor<IN,OUT,L,F>
- Type Parameters:
IN
- The type of the input document tokensOUT
- The type of the output document tokensL
- The type of the labels (for the document for classification)F
- The type of the features (for the document for classification)
- All Implemented Interfaces:
- DocumentProcessor<IN,OUT,L,F>, ListProcessor<IN,OUT>
- Direct Known Subclasses:
- PTBEscapingProcessor, StripTagsProcessor, WordToTaggedWordProcessor
public abstract class AbstractListProcessor<IN,OUT,L,F>
- extends java.lang.Object
- implements ListProcessor<IN,OUT>, DocumentProcessor<IN,OUT,L,F>
Class AbstractListProcessor
- Author:
- Teg Grenager, Sarah Spikes (sdspikes@cs.stanford.edu) (Templatization)
Method Summary |
Document<L,F,OUT> |
processDocument(Document<L,F,IN> in)
Converts a Document to a different Document, by transforming
or filtering the original Document. |
java.util.List<java.util.List<OUT>> |
processLists(java.util.List<java.util.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 |
AbstractListProcessor
public AbstractListProcessor()
processDocument
public Document<L,F,OUT> processDocument(Document<L,F,IN> in)
- Description copied from interface:
DocumentProcessor
- 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 DocumentProcessor<IN,OUT,L,F>
- See Also:
FunctionProcessor
processLists
public java.util.List<java.util.List<OUT>> processLists(java.util.List<java.util.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