Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

Latest commit

 

History

History
52 lines (38 loc) · 1.71 KB

README.md

File metadata and controls

52 lines (38 loc) · 1.71 KB

Bottlenose

This is an implementation of the DELPH-IN RESTful API using ACE and pyDelphin as the backend.

Deprecation Notice

This project is now deprecated will no longer be developed. Users are advised to migrate to the PyDelphin's built-in web server, or otherwise use PyDelphin v0.9.2.

Quick Start

Configure your grammars and ACE in config.py, make sure the requirements are satisfied and importable (e.g. by setting PYTHONPATH), and run:

python3 bottlenose.py

Send requests to the server (assuming this is run locally at http://127.0.0.1:8080)

curl -v http://127.0.0.1:8080/erg/parse?mrs=json\&input=Abrams%20barks.
[...]
< HTTP/1.0 200 OK
[...]
< Content-Type: application/json
{"pedges": "42", "results": [{"result-id": 0, "mrs": {"top": "h0", ...

If you want a client to read the responses from the server, try pyDelphin's REST interface.

Requirements

Disclaimer

Bottlenose currently only implements a subset of the functions defined by the API, but it also provides DMRS output and it works with non-ERG grammars as well.