emnlp2017
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
checkpoints
data
log_latest
README.md
__init__.py
configs.py
eval_metrics.py
model.py
model_group.py
model_rnn.py
my_data.py
prep_wikiqa_data.py
run.py
run_model.py
toy_data.py

README.md

answer-triggering

Our paper "An End-to-End Deep Framework for Answer Triggeringwith a Novel Group-Level Objective" is accpeted by EMNLP 2017.

Dataset preparation

We use the WikiQA data set. Please see the paper for more details: WikiQA: A Challenge Dataset for Open-Domain Question Answering

Please download the original WikiQA code package, and run the following commands for preprocessing:

cd WikiQACodePackage/code
python -u process_data.py --w2v_fname ../data/GoogleNews-vectors-negative300.bin --extract_feat 1 ../data/wiki/WikiQASent-trai    n.txt ../data/wiki/WikiQASent-dev.txt ../data/wiki/WikiQASent-test.txt ../wiki_cnn.pkl

Our model use the exact same preprocessed data here: "../wiki_cnn.pkl" for fair comparison of performances.

Running our model

We use tensorflow (0.12.1) to implement our NN model. Copy "../wiki_cnn.pkl" into "./data" before running the following command:

python run.py --train --plus_cnt=True
python run.py --test --plus_cnt=True