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.py
Train model.
python3 model.py
Evaluate model with test file.
python3 eval.py
Packing models as a http service. Run commands in deploy
folder.
python3 server.py 9000
The function for calculate similarity is implement as client.similarity
, use question
and relation
as input.
Read and modify the config file config.ini