Client for Stanford Named Entity Reconginiton
JavaScript Shell
Switch branches/tags
Nothing to show
Clone or download
Mohamed and niksrc handle IOB format
Closes #4.
Latest commit ab99464 Jul 17, 2018
Permalink
Failed to load latest commit information.
.editorconfig Init Commit Apr 17, 2016
.gitattributes Init Commit Apr 17, 2016
.gitignore Init Commit Apr 17, 2016
.npmrc Bump packages Jun 2, 2018
.travis.yml Bump packages Jun 2, 2018
compositor.json Update compositor.json via compositor.io Jun 2, 2018
index.js handle IOB format Jul 18, 2018
license Init Commit Apr 17, 2016
ner-server.sh Implements basic api Apr 17, 2016
package.json 1.0.0 Jun 2, 2018
readme.md update readme file Jun 2, 2018

readme.md

ner

Client for Stanford NER

Requirements

Stanford NER

Starting up Stanford NER

Use ner-server.sh

Install

$ npm install --save ner

Usage

const NER = require('ner');

const ner = new NER({
	port:8080,
	host:'172.17.0.2'
})

ner.get('Wikipedia is a free-access, free-content Internet encyclopedia, supported and hosted by the non-profit Wikimedia Foundation. Those who can access the site can edit most of its articles.[5] Wikipedia is ranked among the ten most popular websites,[4] and constitutes the Internets largest and most popular general', (err, res) => {
	console.log(res.entities);
});

API

new instance

options

port

Type: integer

Port on which NER server is running.

host

Type: string

HOST of the NER server eg. localhost .

ner.get(text, callback)

parms

text

Type: string

Text to be tagged

callback(err, response)

Type: function

Callback function which recieves the response object.

response.entities

Parsed entities from the xml server response.

response.raw

Raw xml response from server

response._parsed

Internal parser representation (regex matches)

License

MIT © Nikhil Srivastava