Public Repository

Last pushed: 2 years ago
Short Description
Image connecting mbartoli/ner and npm module ner-server
Full Description

Image connecting mbartoli/ner and npm module ner-server.

It's super hacky and seeks to use the two dependencies as-is, made obvious by the symlink from where ner-server expects a jar to where mbartoli/ner has it, and the cp of ner-server's package.json & index.js into the dir where the java app lives. Alternatively, I could have included an altered index.js which isn't hard-coded with the same assumptions.

$ docker run -d -p 3000:8008 node-ner
$ curl -X POST --header "Content-Type:application/json" --data '{"file":"Pomona College is located in Claremont, California"}' http://localhost:3000/ner
{"entities":{"ORGANIZATION":["Pomona College"],"LOCATION":["Claremont"]}}
Docker Pull Command
Owner
brianshaler

Comments (0)