Implementation for paper "Improved Neural Relation Detection for Knowledge Base Question Answering". The glove word embedding file can be download from GloVe
Preprocess the training file and test file.
python3 preprocess.pyTrain model.
python3 model.pyEvaluate model with test file.
python3 eval.pyPacking models as a http service. Run commands in deploy folder.
python3 server.py 9000The function for calculate similarity is implement as client.similarity, use question and relation as input.
Read and modify the config file config.ini