ConnectorServer

ConnectorServer

Class representing a Connector Server (web server client)

Constructor

new ConnectorServer(config)

Source:

Create a ConnectorServer

Parameters:
Name Type Description
config Object
Properties
Name Type Description
dsn string

The StanfordCoreNLPServer dsn (example: 'http://localhost:9000')

Methods

get(config, utilityopt) → {Promise.<Object>}

Source:
Parameters:
Name Type Attributes Description
config Object
Properties
Name Type Description
annotators Array.<string>

The list of annotators that defines the pipeline

text string

The text to run the pipeline against

options Object

Additinal options (properties) for the pipeline

language string

Language full name in CamelCase (eg. Spanish)

utility '' | 'tokensregex' | 'semgrex' | 'tregex' <optional>

Name of the utility to use NOTE: most of the utilities receives properties, these should be passed via the options param

Returns:
Type
Promise.<Object>