Tested code on queries with multiple phrases

This commit is contained in:
Arthur Idema
2025-08-31 18:09:19 +02:00
parent 2f6a3bcef3
commit 37b17fcbd4
6 changed files with 2578 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ for dir in ../results_new_postings/*; do
SUMDF=$(duckdb "$DB" -csv -noheader "SELECT sumdf FROM fts_main_documents.stats;")
# Get eval from cranfield_queries_half1 where name matches DB
DB_BASENAME=$(basename "$DB" .db)
EVAL_HALF1="../results_new_postings/cranfield_queries_half2/${DB_BASENAME}_eval.txt"
EVAL_HALF1="../results_new_postings/cranfield_queries_with_2_bigrams/${DB_BASENAME}_eval.txt"
if [[ -f "$EVAL_HALF1" ]]; then
MAP=$(grep -E '^map[[:space:]]+all' "$EVAL_HALF1" | awk '{print $3}')
POSTINGS_COST=$(grep '^Average cost in postings:' "$EVAL_HALF1" | awk '{print $5}')