This is an implementation of the DELPH-IN RESTful API using ACE and pyDelphin as the backend.
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.
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.
- Python 3.3+
- ACE
- PyDelphin (last supported version: v0.9.2)
- Flask
- Flask-CORS
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.