-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (20 loc) · 871 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
include .env
export
build: build-jar install-requirements build-trec
index: build-jar index
build-jar:
# Build Lucene-based jar
cd indexing && ./mvnw clean package -DskipTests=true -e
build-trec:
# Build trec to evaluate performance
cd trec_eval-9.0.7 && make
install-requirements:
# Install python requirements
pip install -r requirements.txt
index:
mkdir -p ${INDEX_PATH}
java -jar indexing/target/indexing-1.0-SNAPSHOT-jar-with-dependencies.jar --index -dataset ${DATASET_PATH} -output ${INDEX_PATH}
run:
python main.py -m ${MAX_RESULTS} --ckpt ${MODEL} --topicpath ${TOPICS} --alpha ${ALPHA} --name ${RUN_NAME} --titleboost ${TITLE_BOOST} --type ${TYPE} --beta ${BETA} --queryexp ${QUERY_EXP} --nrerank ${N_RERANK} --judgements ${JUDGEMENTS}
evaluate:
./trec_eval-9.0.7/trec_eval -m all_trec ${JUDGEMENTS} ./data/experiment/${RUN_NAME}/run.txt