Skip to content

dice-group/TeBaQA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d88c764 · Feb 28, 2022
Dec 13, 2017
Jul 17, 2021
Jan 4, 2022
Jan 24, 2018
Jan 4, 2022
Jan 4, 2022
Jan 4, 2022
Jan 4, 2022
Jan 4, 2022
Dec 5, 2017
Jan 31, 2018
Jul 17, 2018
Feb 28, 2022
Jun 26, 2019
Jul 6, 2021
May 10, 2019
Jul 17, 2021
Jul 17, 2021

Repository files navigation

Template-Based Question Answering (TeBaQA)

Build Status Codacy Badge

TeBaQA is available at https://tebaqa.demos.dice-research.org/

Execution

TeBaQA implements microservices architecture. The application comprises following 5 modules:

  • Template Classification :- to classify query templates (localhost:8081)
  • Entity Linking :- finding and linking entities and relations (localhost:8082)
  • Query Ranking :- candidate query execution, ranking (localhost:8083)
  • TeBaQA Controller :- central controller, frontend application (localhost:8080)
  • NLP Server :- CoreNLP Server endpoint (localhost:8085)

Additionally, Entity Linking requires Elasticsearch indices for data and ontology of the knowledge base. We provide dumps of DBPedia (2016-10 release). Find the dump files along with the instructions at Hobbit data. The indices were generated on Elastiscearch 6.6.1. You have to install Elasticsearch to use the Entity Linking components of TeBaQA. However, TeBaQA can also be run on your own knowledge base. Check the instruction in this file for more information on creating your own Elasticsearch indices. The script for createing the indices is located here

There are two ways to run TeBaQA

1. Run locally

  • Checkout the project

  • make files executable (chmod +x <filename>.sh)

  • Build all modules

    ./build-script.sh

  • Run all modules

    ./run-script.sh

2. Run as Docker (installation guide, Ubuntu 20.04) containers

  • Checkout the project

  • Build docker images for each module

    ./docker/build-images.sh

  • To run all containers

    ./docker/run-containers.sh

  • To stop all containers

    ./docker/stop-containers.sh

Citation

Vollmers, D., Jalota, R., Moussallem, D., Topiwala, H., Ngomo, A. C. N., & Usbeck, R. (2021). Knowledge Graph Question Answering using Graph-Pattern Isomorphism. arXiv preprint arXiv:2103.06752. https://arxiv.org/abs/2103.06752

Question Answering

  • To answer a question, simply execute an HTTP POST request to
  • Parameters:
    • query: A string which contains a question (required).
    • lang: The language of the question (default:en) Note: Other languages than English haven't been implemented yet.
  • An example request could look like this:
    • http://localhost:8080/qa?query=Where is the birthplace of Angela Merkel?&lang=en

Evaluation

Ablation study

Credit