Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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.

About

DELPH-IN RESTful API using ACE and pyDelphin

Resources

License

Releases

No releases published

Packages

No packages published

Languages