Governor

CoreNLP/simple. Governor

Class representing a Governor

Constructor

new Governor(dep, dependentToken, governorTokenopt)

Source:

Create a Governor

Parameters:
Name Type Attributes Default Description
dep string
dependentToken Token
governorToken Token <optional>
null

Methods

(static) fromJSON(data) → {Governor}

Source:
To Do:
  • It is not possible to properly generate a Governor from a GovernorJSON the Governor requires references to the Token instances in order to work

Get an instance of Governor from a given JSON

Parameters:
Name Type Description
data GovernorJSON

The token data, as returned by CoreNLP API service

Returns:

governor - A new Governor instance

Type
Governor

toString() → {string}

Source:

Get a string representation

Returns:

governor

Type
string