Giter Site home page Giter Site logo

ner's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.