A node.js client to interact with Stanford's POS-tagger.
node-stanford-postagger has one usage, to interact with Stanford's POS-tagger.
git clonecd node-stanford-postaggernpm install
util/run-server.sh is a script that runs Turian's XMLRPC service for Stanford's POS-tagger in a user-friendly way.
run-server.sh models/left3words-wsj-0-18.tagger 9000
The above runs the service using the built-in
left3words-wsj-0-18 training model on port
9000. To run this script, it's required to live in the root directory of the stanford-postagger code--in the same directory as Turian's
tagger-server.jar is required to be moved.
Once the server is running, you can run:
bin/tag "Hello, world!"
You'll get back:
[ 'Hello_UH ,_, world_NN !_.\n' ]
var Tagger = Tagger;var tagger =port: "9000"host: "localhost";tagger;
If you don't like callbacks and prefer promises, node-stanford-postagger supports
var Q = ;var Tagger = Tagger;var tagger =port: "9000"host: "localhost";tagger;tagger;
node-stanford-postagger is free--as in BSD. Hack your heart out, hackers.