mirror of
https://github.com/wassname/Castor.git
synced 2026-09-12 12:02:24 +08:00
* initial commit of the updated bridge * moved bridge file to the root * after CR1 * after CR2
17 lines
870 B
Bash
Executable File
17 lines
870 B
Bash
Executable File
#!/bin/sh
|
|
mkdir -p data
|
|
python overlap_features.py --dir ../../data/TrecQA/
|
|
|
|
CURRENT_DIR=$(pwd)
|
|
cd ../../data/TrecQA
|
|
cd raw-dev/; paste id.txt sim.txt a.toks b.toks overlap_feats.txt > $CURRENT_DIR/data/trecqa.dev.tsv; cd ..
|
|
cd raw-test/; paste id.txt sim.txt a.toks b.toks overlap_feats.txt > $CURRENT_DIR/data/trecqa.test.tsv; cd ..
|
|
cd train-all/; paste id.txt sim.txt a.toks b.toks overlap_feats.txt > $CURRENT_DIR/data/trecqa.train.tsv; cd ..
|
|
cd $CURRENT_DIR
|
|
|
|
python overlap_features.py --dir ../../data/WikiQA/
|
|
cd ../../data/WikiQA
|
|
cd dev/; paste id.txt sim.txt a.toks b.toks overlap_feats.txt > $CURRENT_DIR/data/wikiqa.dev.tsv; cd ..
|
|
cd test/; paste id.txt sim.txt a.toks b.toks overlap_feats.txt > $CURRENT_DIR/data/wikiqa.test.tsv; cd ..
|
|
cd train/; paste id.txt sim.txt a.toks b.toks overlap_feats.txt > $CURRENT_DIR/data/wikiqa.train.tsv; cd ..
|
|
cd $CURRENT_DIR |