NER-Node
Library to connect to Stanford NER local Server, send in the Raw Text and get back Entity JSON
Installation
- npm install ner-node
- You can now try the test files to see the library working.
Usage
Here is an example of how you can call the library :-
var socketNER = require("ner-node")
socketNER(port, classifierFileName, pathToNER, function (obj) {
// you can define your own function to parse tagged text
obj.parser = function (taggedText) {..... return entities}
// A Sync function to get the Entities JSON
var entitiesJSON = obj.getEntities(rawText, requiredEntity)
// closes the server and socket when done
obj.close()
})
Note:-
The npm package doesn't come with StanfordNER folder. You can download the latest from Stanford NER website OR get it from the git hub repository.
Issues & Suggestions
If you find an issues using the Library OR if you have any suggestions to make it perform better, then you can write to us in the Issues Section.
Donate
If this repository helps you anyhow, please don't mind coming back and
Buy Me Coffee