Python scripts and the required inputs for running Qualitative Spatial Reasoning Question Answering (QSR-QA) System.
The script has four main steps:
- Query generation for three types of questions.
- Extracting place semantics based on AllenNLP and DeepPavlov libraries in a triple format of (Place 1, relation, Place 2).
- Preparing the required inputs for SparQ and ProbCog reasoning (You have to firstly set up these reasonsers in your local machine and then use their corresponding implemented python API to generate answers for each question.)
- Answer extraction on top of the results obtained in the previous step for all question types.
- Evaluation of the answers.
Feel free to reach out for any inquries about how this system works. mkb6988@gmail.com