forked from castorini/birch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update evaluation scripts and other minor edits for EMNLP (castorini#27)
* Update README * Merge unified code to split documents into sentences * Remove matplotlib from requirements.txt * Remove unnecessary args from commands * Update evaluation scripts * Update evaluation commands * Reorganize repo * Add option to filter exact matches in searcher * Add notes in the README * Revert to 5 fold for Core17/18
- Loading branch information
1 parent
d8d3837
commit 2dd0401
Showing
21 changed files
with
259 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
anserini_path=$1 | ||
collection=$1 | ||
index_path=$2 | ||
num_folds=$3 | ||
anserini_path=$3 | ||
data_path=$4 | ||
|
||
birch_path=$(pwd) | ||
cd ${anserini_path} | ||
|
||
if [ ${num_folds} == '5' ] ; then | ||
folds_path="src/main/resources/fine_tuning/robust04-paper2-folds.json" | ||
params_path="src/main/resources/fine_tuning/robust04-paper2-folds-map-params.json" | ||
else | ||
folds_path="src/main/resources/fine_tuning/robust04-paper1-folds.json" | ||
params_path="src/main/resources/fine_tuning/robust04-paper1-folds-map-params.json" | ||
fi | ||
|
||
python3 src/main/python/fine_tuning/reconstruct_robus04_tuned_run.py --index ${index_path} --folds ${folds_path} --params ${params_path} | ||
rm run.robust04.bm25+rm3.fold* | ||
mkdir --parents ${birch_path}/runs | ||
mv run.robust04.bm25+rm3.txt ${birch_path}/runs/run.bm25+rm3_${num_folds}cv.txt | ||
${anserini_path}/target/appassembler/bin/SearchCollection -topicreader Trec -index ${index_path} -topics "${data_path}/topics/topics.${collection}.txt" -output "runs/run.${collection}.bm25+rm3.txt" -bm25 -rm3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
experiment=$1 | ||
collection=$2 | ||
anserini_path=$3 | ||
data_path=$4 | ||
metric=$5 | ||
|
||
birch_path=$(pwd) | ||
cd ${anserini_path} | ||
|
||
python3.6 src/main/python/compare_runs.py --base ${birch_path}/runs/run.${collection}.bm25+rm3.txt \ | ||
--comparison ${birch_path}/runs/run.${experiment}.cv.a --metric ${metric} \ | ||
--qrels ${birch_path}/${data_path}/qrels/qrels.${collection}.txt > temp_sigtext.txt | ||
tail -6 temp_sigtext.txt > ${birch_path}/${data_path}/sigtest/${experiment}_${metric}_a | ||
|
||
python3.6 src/main/python/compare_runs.py --base ${birch_path}/runs/run.${collection}.bm25+rm3.txt \ | ||
--comparison ${birch_path}/runs/run.${experiment}.cv.ab --metric ${metric} \ | ||
--qrels ${birch_path}/${data_path}/qrels/qrels.${collection}.txt > temp_sigtext.txt | ||
tail -6 temp_sigtext.txt > ${birch_path}/${data_path}/sigtest/${experiment}_${metric}_ab | ||
|
||
python3.6 src/main/python/compare_runs.py --base ${birch_path}/runs/run.${collection}.bm25+rm3.txt \ | ||
--comparison ${birch_path}/runs/run.${experiment}.cv.abc --metric ${metric} \ | ||
--qrels ${birch_path}/${data_path}/qrels/qrels.${collection}.txt > temp_sigtext.txt | ||
tail -6 temp_sigtext.txt > ${birch_path}/${data_path}/sigtest/${experiment}_${metric}_abc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.