DELPH-IN RESTful API using ACE and pyDelphin
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
app.wsgi
bottlenose.py
config.py

README.md

Bottlenose

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

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.