Skip to content
Go to file


An Information Gain based Question Answering system over knowledge graph systems.

  1. chmod +x
  2. download glove42B and save it in resource folder
  3. mkdir logs
  4. ./
  5. python
  6. python
  7. CUDA_VISIBLE_DEVICES=3 python -model slotptr -device cuda -dataset lcquad -pointwise False

Download glove

wget save it to resource folder unzip it

Use Anaconda installation (still need to test it)

conda env create -f environment.yml

Setup redis server (this setup is not necessary. Its used for caching)

For installation

Setup dbpedia and add the url in utils/

Setup SPARQL parsing server

@TODO: add code here 
Install nodejs (node, nodejs)
> nodejs app.js

Setup embedding server

 python (Keep this always on)
 This will need bottle installed (pip install bottle)

Check for running verison of DBPedia, Redis (if caching), SPARQL Parsing server, Embedding interface

Setup Qelos-utils change into qelos-util dir and python build/develop/ cp qelos ../

Install few more things

A potential bug is that he glove file datatype would be <U32

A rdftype_lookup.json can be created using the keys of relation.pickle (data/data/common)

import numpy as np
mat = np.load('resources/vectors_gl.npy')
mat = mat.astype(np.float64)'resources/vectors_gl.npy',mat)

#### TODO
change embedding in configs to 300d

Once the dataset is prepared

To check if all the files are in correct palce run the following command


Once the data is at appropriate place run the following command.

CUDA_VISIBLE_DEVICES=3 python -model slotptr -device cuda -dataset lcquad -pointwise False
You can’t perform that action at this time.