This repository contains a simple service to wrap multiple OpeNER services and expose them via a unified API.
# start the nlp services and wrapper service
docker-compose up --build -d
# call the wrapper service
curl 'http://localhost:9999/opener' \
-H 'Content-Type: application/json' \
-d '{"text": "I went to Rome last year. It was fantastic.",
"steps": [
"identify_language",
"tokenize",
"pos",
"ner"
]}'
A test page for the service is available at http://localhost:9999.
By default the response will be returned as JSON. If the raw OpeNER XML
output in KAF format
is desired, set the request accept header to application/xml
. Sample JSON response. Sample XML response.
If you are looking for additional NLP capabilities beyond the ones listed above, take a look at @devkws's fork which adds constituent-parsing, polarity-tagging and opinion-detection.