public class SingletonCoreNlpServer extends DefaultCoreNlpServer
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
bound
Whether single instance is already bound
|
private static SingletonCoreNlpServer |
instance
The single instance
|
pipeline| Modifier | Constructor and Description |
|---|---|
private |
SingletonCoreNlpServer()
Private constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
bind()
Load all submodules (segmenter, parser, analyzer, ...)
|
static SingletonCoreNlpServer |
getInstance()
Factory
|
Pipeline |
getPipeline()
Get pipeline
|
void |
unbind()
Unbind
|
private static boolean |
unbound()
Is unbound
|
getCapabilities, getDefaultConfig, getDescription, getOptions, main, makeDescription, processText, reset, setupprivate static SingletonCoreNlpServer instance
private static boolean bound
public static SingletonCoreNlpServer getInstance()
private static boolean unbound()
public boolean bind()
IServerbind in interface IServerbind in class DefaultCoreNlpServerpublic void unbind()
IServerunbind in interface IServerunbind in class DefaultCoreNlpServerpublic Pipeline getPipeline()