Package edu.stanford.nlp.process
Class CoreLabelProcessor
- java.lang.Object
-
- edu.stanford.nlp.process.CoreLabelProcessor
-
- Direct Known Subclasses:
CodepointCoreLabelProcessor,GermanTokenizerPostProcessor
public abstract class CoreLabelProcessor extends Object
Abstract class for processing aList<CoreLabel>. Example use case is merging on hyphens for German NER (process) and then restoring after classification (restore).
-
-
Constructor Summary
Constructors Constructor Description CoreLabelProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract List<CoreLabel>process(List<CoreLabel> tokens)Alter the tokenization of list of tokens (e.g.abstract List<CoreLabel>restore(List<CoreLabel> originalTokens, List<CoreLabel> processedTokens)Undo the tokenization changes of process, maintaining any tagging
-