Tf CFO Save

Tensorflow implementation of CFO, a knowledge graph based QA system

Project README

tf_CFO

Tensorflow implementation of CFO: Conditional Focused Neural Question Answering with Large-scale Knowledge Bases

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

Update: For those who are blocked, here's the link of BaiduYunPan to download the dataset: https://pan.baidu.com/s/1RBFQHuQDHuuESu4fGkmeMw (password: 6mpi)

  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: https://pan.baidu.com/s/1M_674aselMx8LtLagr0AcQ (password:azen)

Open Source Agenda is not affiliated with "Tf CFO" Project. README Source: AlexYangLi/tf_CFO
Stars
27
Open Issues
0
Last Commit
5 years ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating