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

Interpret natural language using abductive inference

License

Notifications You must be signed in to change notification settings

jgordon/interpret

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).