/CFO

Conditional Focused Neural Question Answering with Large-scale Knowledge Bases

Primary LanguageLua

CFO

Code repo for Conditional Focused Neural Question Answering with Large-scale Knowledge Bases

Installation and Preprocessing

  1. Refer to Virtuoso.md to install and confiture the software
  2. Make sure torch7 is installed together with the following dependencies
    • logroll: luarocks install logroll
    • nngraph: luarocks install nngraph
  3. After the installation and configuration of Virtuoso, run bash data_preprocess.sh to finish preprocessing

Training

  1. Focused Lableing

    cd FocusedLabeling
    th train_crf.lua
  2. Entity Type Vector

    cd EntityTypeVec
    th train_ent_typevec.lua
  3. RNN based Relation Network

    cd RelationRNN
    th train_rel_rnn.lua