Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Latest commit

 

History

History
37 lines (28 loc) · 836 Bytes

README.md

File metadata and controls

37 lines (28 loc) · 836 Bytes

interpret

Interpret English into Hobbsian logical forms.

Dependencies for the server are handled by Docker. The client depends on the 'click' package: conda install click or pip3 install click.

Build and run the image:

./build
./run

Send requests using the example client:

./client I interrogated him.
./client -s sentence.txt
./client -p sentence_parse_lf.txt

Send requests as JSON:

curl -d '{"s": "I interrogated him."}' http://localhost:5000/interpret

Interpret uses the knowledge base in kb/kb.lisp, which is copied into the Docker image when it is built. A different KB can be sent with a particular request:

./client -s sentence.txt -k kb/custom.kb

Acknowledgments

This work is supported by Contract W911NF-15-1-0543 with the US Defense Advanced Research Projects Agency (DARPA).