Skip to content
/ ner Public
forked from niksrc/ner

Client for Stanford Named Entity Reconginiton

License

Notifications You must be signed in to change notification settings

agnibha92/ner

 
 

Repository files navigation

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');

ner.get({
	port:8080,
	host:'localhost'
}, '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', function(err, res){
	console.log(res.entities);
	//=> { LOCATION: [ 'Wikipedia' ], ORGANIZATION: [ 'Wikimedia Foundation'] }
});

API

ner.get(options, text, callback)

options

port

Type: integer

Port on which NER server is running.

host

Type: string

HOST of the NER server eg. localhost .

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

About

Client for Stanford Named Entity Reconginiton

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 71.4%
  • Shell 28.6%