public class ParsingThreadsafeProcessor extends Object implements ThreadsafeProcessor<List<? extends HasWord>,ParserQuery>
| Constructor and Description |
|---|
ParsingThreadsafeProcessor(ParserGrammar pqFactory) |
ParsingThreadsafeProcessor(ParserGrammar pqFactory,
PrintWriter pwErr) |
| Modifier and Type | Method and Description |
|---|---|
ThreadsafeProcessor<List<? extends HasWord>,ParserQuery> |
newInstance()
Return a new threadsafe instance.
|
ParserQuery |
process(List<? extends HasWord> sentence)
Set the input item that will be processed when a thread is allocated to
this processor.
|
public ParsingThreadsafeProcessor(ParserGrammar pqFactory)
public ParsingThreadsafeProcessor(ParserGrammar pqFactory, PrintWriter pwErr)
public ParserQuery process(List<? extends HasWord> sentence)
ThreadsafeProcessorprocess in interface ThreadsafeProcessor<List<? extends HasWord>,ParserQuery>sentence - the object to be processedpublic ThreadsafeProcessor<List<? extends HasWord>,ParserQuery> newInstance()
ThreadsafeProcessornewInstance in interface ThreadsafeProcessor<List<? extends HasWord>,ParserQuery>