/tf_CFO

Tensorflow implementation of CFO, a knowledge graph based QA system

Primary LanguagePythonMIT LicenseMIT

tf_CFO

Tensorflow implementation of CFO

Requirement

  • python >= 3.5
  • tensorflow >= 1.4
  • pickle
  • numpy
  • gensim
  • nltk
  • fuzzywuzzy

Preprocessing

Goto data_preprocess directory and run the scripts (might take some time):

  1. fetch dataset
sh fetch.sh
  1. preprocess data
sh preprocess.sh

Training

  • The QA system consists of 3 components: entity detection, relation network and subject network.
  • Goto corresponding directory and refer to README.md to finish training and testing.

Inference

Goto inference folder and refer to README.md to get test result.

Reference

Download processed data

Processed data are also available, feel free to download: password:azen