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)public abstract class AbstractListProcessor<IN,OUT,L,F> extends Object implements ListProcessor<IN,OUT>, DocumentProcessor<IN,OUT,L,F>
Constructor and Description |
---|
AbstractListProcessor() |
Modifier and Type | Method and Description |
---|---|
Document<L,F,OUT> |
processDocument(Document<L,F,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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
process
public Document<L,F,OUT> processDocument(Document<L,F,IN> in)
DocumentProcessor
in
Document in any way, and to
preserve the metadata of the in
Document in the
returned Document.processDocument
in interface DocumentProcessor<IN,OUT,L,F>
FunctionProcessor