Skip to content
Named Entity Recognition library wrapped in a Scalatra app
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Entity Minr

Copy dependencies

Clone this repo to a convienient folder. Download the Stanford Named Enity Recognizer and copy the stanford-ner.jar into the ./lib folder of this repo. Copy the ./classifiers/english.all.3class.distsim.crf.ser.gz model into the ./stanford folder of this repo.

Build & Run

$ cd Entity_Minr
$ ./sbt
> container:start
> browse

If browse doesn't launch your browser, manually open http://localhost:8080/ in your browser.


This app has one POST endpoint at /entities. Pass the text to process in the request body with the key 'contents'. For example in ruby using NET::HTTP:

uri = URI.parse("http://localhost:8080/entities")

header = {'Content-Type' => 'application/json'}
to_process = {:content => "Paris and Berlin do not share the UK's level of concerns"}

http =, uri.port)
request =, header)
res.body = to_process.to_json
res = http.request(request)

[{"entity_type"=>"LOCATION", "entity_text"=>"Paris"}, {"entity_type"=>"LOCATION", "entity_text"=>"Berlin"}, {"entity_type"=>"LOCATION", "entity_text"=>"UK"}]
You can’t perform that action at this time.