Giter Club home page Giter Club logo

kbqa's Introduction

MPqa

Svitlana Vakulenko, Javier D. Fernandez, Axel Polleres, Maarten de Rijke and Michael Cochez. Message Passing for Complex Question Answering over Knowledge Graphs. CIKM. 2019

Requirements

  • Python 3.6

  • tensorflow==1.11.0

  • keras==2.2.4

  • pyHDT (for accesssing the DBpedia Knowledge Graph)

  • elasticsearch==5.5.3 (for indexing entities and predicate labels of the Knowledge Graph)

  • pymongo (for storing the LC-QuAD dataset)

  • flask (for the API)

Datasets

  • LCQUAD 5,000 pairs of questions and SPARQL queries

Setup

It is not trivial to set up the environment. You need to:

  1. Create virtual environment and install all dependencies (to install CUDA, TF, Keras and friends follow https://medium.com/@naomi.fridman/install-conda-tensorflow-gpu-and-keras-on-ubuntu-18-04-1b403e740e25)
conda create -n kbqa python=3.6 pip
conda activate kbqa
pip install -r requirements.txt
  1. Install HDT API:
git clone https://github.com/webdata/pyHDT.git
cd pyHDT/
./install.sh
  1. Download DBPedia 2016-04 English HDT file and its index from http://www.rdfhdt.org/datasets/
  2. Follow instructions in https://github.com/svakulenk0/hdt_tutorial to extract the list of entities (dbpedia201604_terms.txt) and predicates
  3. Index entities and predicates into ElasticSearch
  4. Download LC-QuAD dataset from http://lc-quad.sda.tech
  5. Import LC-QuAD dataset into MongoDB
sudo service mongod start

Run

see notebooks

Benchmark

python final_benchmark_results.py

Citation

@inproceedings{DBLP:conf/cikm/VakulenkoGPRC19,
  author    = {Svitlana Vakulenko and
               Javier David Fernandez Garcia and
               Axel Polleres and
               Maarten de Rijke and
               Michael Cochez},
  title     = {Message Passing for Complex Question Answering over Knowledge Graphs},
  booktitle = {Proceedings of the 28th {ACM} International Conference on Information
               and Knowledge Management, {CIKM} 2019, Beijing, China, November 3-7,
               2019},
  pages     = {1431--1440},
  year      = {2019},
  url       = {https://doi.org/10.1145/3357384.3358026},
  doi       = {10.1145/3357384.3358026},
  timestamp = {Mon, 04 Nov 2019 11:09:32 +0100}
}

kbqa's People

Contributors

svakulenk0 avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.