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 java.lang.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.
|
java.util.List<java.util.List<OUT>> |
processLists(java.util.List<java.util.List<IN>> lists)
Process a list of lists of tokens.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocesspublic Document<L,F,OUT> processDocument(Document<L,F,IN> in)
DocumentProcessorin 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>public java.util.List<java.util.List<OUT>> processLists(java.util.List<java.util.List<IN>> lists)
lists - a List of objects of type List