Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mam10eks authored Mar 20, 2024
1 parent 5f2a70d commit 66245bf
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,12 @@ Please ensure that you have python >= 3.7, Docker, and tira-run installed (`pip3

```
tira-run \
--input-dataset workshop-on-open-web-search/query-processing-20231027-training \
--input-run 'workshop-on-open-web-search/tira-ir-starter/Index (tira-ir-starter-pyterrier)' \
--image mam10eks/qpptk:0.0.1 \
--command 'python3 /qpptk_main.py -ti $inputRun/index/ --jsonl_queries $inputDataset/queries.jsonl --predict --retrieve --output $outputDir --cleanOutput --stats_index_path /tmp'
--input-dataset workshop-on-open-web-search/retrieval-20231027-training \
--approach ir-benchmarks/qpptk/all-predictors \
--input-run 'ir-benchmarks/tira-ir-starter/Index (tira-ir-starter-pyterrier)'
```

File "/workspaces/QPP-EnhancedEval/code/qpptk/qpptk/global_manager.py", line 33, in run_pre_prediction_process
max_idf = process.calc_max_idf()
File "/workspaces/QPP-EnhancedEval/code/qpptk/qpptk/pre_retrieval_predictors.py", line 30, in calc_max_idf
return np.log(np.array(self.total_docs) / self.terms_df).max()
File "/usr/local/lib/python3.10/dist-packages/numpy/core/_methods.py", line 40, in _amax
return umr_maximum(a, axis, None, out, keepdims, initial, where)
ValueError: zero-size array to reduction operation maximum which has no identity

In this command, `--input-dataset` refers to a dataset identifier (can be replaced with `--input-directory` to run on data not available in ir_datasets), `--approach` is the identifier of the qpptk software in TIRA that did run all available predictors, and `--input-run` specifies that a PyTerrier index should be constructed / passed produced by the software with the corresponding id.

## Build the Docker Images

Expand Down

0 comments on commit 66245bf

Please sign in to comment.