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, setup
private static SingletonCoreNlpServer instance
private static boolean bound
public static SingletonCoreNlpServer getInstance()
private static boolean unbound()
public boolean bind()
IServer
bind
in interface IServer
bind
in class DefaultCoreNlpServer
public void unbind()
IServer
unbind
in interface IServer
unbind
in class DefaultCoreNlpServer
public Pipeline getPipeline()