Skip to content

Commit

Permalink
Added a missing else to enable setting BM25Accurate properly (#2587)
Browse files Browse the repository at this point in the history
  • Loading branch information
Axiomatic314 authored Sep 7, 2024
1 parent fccc874 commit c096dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/anserini/index/IndexCollection.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public IndexCollection(Args args) throws Exception {
if (args.bm25Accurate) {
// Necessary during indexing as the norm used in BM25 is already determined at index time.
config.setSimilarity(new AccurateBM25Similarity());
} if (args.impact ) {
} else if (args.impact ) {
config.setSimilarity(new ImpactSimilarity());
} else {
config.setSimilarity(new BM25Similarity());
Expand Down

0 comments on commit c096dff

Please sign in to comment.