Coder Social home page Coder Social logo

tf_cfo's Introduction

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)

tf_cfo's People

Contributors

alexyangli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tf_cfo's Issues

MemoryError

What is your memory size?

My cofiguration: 64bits + 16GB.

store knowledge triples in pickle format...
Traceback (most recent call last):
File "create_kg.py", line 138, in
fetch_triple(sys.argv[1], sys.argv[2], sys.argv[3])
File "create_kg.py", line 111, in fetch_triple
pickle_save(triples, os.path.join(out_dir, basename+'_triple.pkl'))
File "/home/iii/tf_CFO/data_preprocess/utils.py", line 67, in pickle_save
pickle.dump(obj, writer)
MemoryError

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.