Skip to content

Commit

Permalink
Merge pull request #1341 from hanhainebula/master
Browse files Browse the repository at this point in the history
fix beir data_loader.py: dev -> validation
  • Loading branch information
hanhainebula authored Jan 18, 2025
2 parents 2163bea + 1f212af commit a95861f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FlagEmbedding/evaluation/beir/data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _load_remote_qrels(
if dataset_name != 'cqadupstack':
qrels = datasets.load_dataset(
'BeIR/{d}-qrels'.format(d=dataset_name),
split=split,
split=split if split != 'dev' else 'validation',
trust_remote_code=True,
cache_dir=self.cache_dir,
download_mode=self.hf_download_mode
Expand Down

0 comments on commit a95861f

Please sign in to comment.