-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b3be83
commit ad46061
Showing
4 changed files
with
16 additions
and
22 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,12 +1,18 @@ | ||
#!/bin/bash | ||
|
||
DATA_DIR=${PWD}/data/ | ||
ES_RESULT_FILE=$DATA_DIR/validation_es_result.jsonl | ||
FINAL_RESULT_FILENAME=$DATA_DIR/validation_final_result.jsonl | ||
MODEL_PATH=$MODEL_DIR/rerank_model.model | ||
TOPK=20 | ||
|
||
# process raw data into jsonl | ||
echo 'starting build raw data...' | ||
# run elasticsearch (BM25) | ||
python3 wsdm_digg/benchmark/benchmarker.py -src_filename $DATA_DIR/validation.jsonl \ | ||
-dest_filename $ES_RESULT_FILE | ||
|
||
# build elasticsearch index | ||
echo 'starting building elasticsearch indexing...' | ||
|
||
# execute recall stage | ||
|
||
# execute reranking stage | ||
# run rerank by bert | ||
python3 wsdm_digg/reranking/predict.py -eval_search_filename $ES_RESULT_FILE \ | ||
-golden_filename $VALID_FILE \ | ||
-dest_filename $RESULT_DIR/$FINAL_RESULT_FILENAME \ | ||
-model_path $MODEL_PATH \ | ||
-eval_batch_size 10 -topk $TOPK |
This file was deleted.
Oops, something went wrong.
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