项目作者: CatalystCode

项目描述 :
Wrapper service for OpeNER Docker images
高级语言: Python
项目地址: git://github.com/CatalystCode/opener-docker-wrapper.git
创建时间: 2017-08-23T20:00:37Z
项目社区:https://github.com/CatalystCode/opener-docker-wrapper

开源协议:MIT License

下载


opener-docker-wrapper

Deploy to Azure
Docker Pulls

This repository contains a simple service to wrap multiple OpeNER services and expose them via a unified API.

  1. # start the nlp services and wrapper service
  2. docker-compose up --build -d
  3. # call the wrapper service
  4. curl 'http://localhost:9999/opener' \
  5. -H 'Content-Type: application/json' \
  6. -d '{"text": "I went to Rome last year. It was fantastic.",
  7. "steps": [
  8. "identify_language",
  9. "tokenize",
  10. "pos",
  11. "ner"
  12. ]}'

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.