protected class SentenceAnnotator.AnnotatorProcessor extends Object implements ThreadsafeProcessor<CoreMap,CoreMap>
Modifier and Type | Method and Description |
---|---|
ThreadsafeProcessor<CoreMap,CoreMap> |
newInstance()
Return a new threadsafe instance.
|
CoreMap |
process(CoreMap sentence)
Set the input item that will be processed when a thread is allocated to
this processor.
|
public CoreMap process(CoreMap sentence)
ThreadsafeProcessor
process
in interface ThreadsafeProcessor<CoreMap,CoreMap>
sentence
- the object to be processedpublic ThreadsafeProcessor<CoreMap,CoreMap> newInstance()
ThreadsafeProcessor
newInstance
in interface ThreadsafeProcessor<CoreMap,CoreMap>