public abstract class CoreLabelProcessor
extends java.lang.Object
List<CoreLabel>
.
Example use case is merging on hyphens for German NER (process) and then
restoring after classification (restore).Constructor and Description |
---|
CoreLabelProcessor() |
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<CoreLabel> |
process(java.util.List<CoreLabel> tokens)
Alter the tokenization of list of tokens (e.g.
|
abstract java.util.List<CoreLabel> |
restore(java.util.List<CoreLabel> originalTokens,
java.util.List<CoreLabel> processedTokens)
Undo the tokenization changes of process, maintaining any tagging
|