Skip to content

Commit

Permalink
fix max_docs in perform_fusion() (#1589)
Browse files Browse the repository at this point in the history
  • Loading branch information
lhbonifacio authored Jul 1, 2021
1 parent 52827bb commit e4c5127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/python/fusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def perform_fusion(method: FusionMethod, runs: List[TrecRun], output_path: str,
print('Performing fusion ->', method)

if method == FusionMethod.RRF:
fused_run = fusion.reciprocal_rank_fusion(runs, max_docs=10000)
fused_run = fusion.reciprocal_rank_fusion(runs, max_docs=max_docs)
fused_run.print_subset(output_path, topics=fused_run.topics())
elif method == FusionMethod.COMBO_SUM:
with open(output_path, 'w+') as f:
Expand Down

0 comments on commit e4c5127

Please # to comment.