Skip to content

Commit

Permalink
Kilt Reproduction (castorini#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurChen189 authored May 3, 2021
1 parent 61b7bde commit f1d992c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/experiments-kilt.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ pip install pyserini
# Get KILT scripts, input and gold data, and install the package
git clone https://github.com/facebookresearch/KILT.git
cd KILT

# go back to an older version
git reset 2130aafaaee0671bdbd03d781b1fa57ee02650d2
pip install -r requirements.txt
pip install .
mkdir data
Expand Down Expand Up @@ -145,3 +148,7 @@ For Recall@100/1000:
| baseline drqa (tfidf + bigram hashing) | 91.87/96.54 | - | - | - | 84.82/94.16 | 94.12/97.29 | 70.98/84.99 | 62.32/80.57 | 87.04/94.95 | 39.98/56.77 | 91.53/96.47 |
| anserini (document) | 88.41/95.65 | - | - | - | 83.24/92.36 | 91.83/97.82 | 75.12/87.59 | 59.66/78.59 | 81.21/92.36 | 34.00/53.12 | 69.95/83.58 |
| anserini (passage) | 91.99/95.79 | - | - | - | 88.03/94.25 | 98.01/99.25 | 75.55/87.08 | 61.52/77.80 | 80.18/91.32 | 32.50/47.85 | 65.96/78.45 |

## Reproduction Log[*](reproducibility.md)

+ Results reproduced by [@ArthurChen189](https://github.com/ArthurChen189) on 2021-05-03 (commit [`6d48609`](https://github.com/castorini/pyserini/commit/6d486094137a26c8a0a57652a06ab4d42d5bce32))
2 changes: 1 addition & 1 deletion scripts/kilt/anserini_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def _get_predictions_thread(arguments):
except jnius.JavaException as e:
if logger:
logger.warning("{query} jnius.JavaException: {}".format(query_element, e))
if 'maxClauseError' in str(e):
if 'maxClauseCount' in str(e):
query = " ".join(query.split()[:950])
hits = ranker.search(query, k=topk)
doc_ids, doc_scores = parse_hits(hits)
Expand Down

0 comments on commit f1d992c

Please sign in to comment.