From 406386cebad98d7e50077f4d59733afba68862a9 Mon Sep 17 00:00:00 2001 From: tahirbags <144145146+tahirbags@users.noreply.github.com> Date: Mon, 2 Oct 2023 19:20:43 -0500 Subject: [PATCH] Update search_eval.py --- search_eval.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/search_eval.py b/search_eval.py index 6996cba..a2d6d5c 100755 --- a/search_eval.py +++ b/search_eval.py @@ -11,7 +11,9 @@ def load_ranker(cfg_file): The parameter to this function, cfg_file, is the path to a configuration file used to load the index. """ - return metapy.index.OkapiBM25() + ranker = metapy.index.OkapiBM25(k1=1.3,b=0.75,k3=500) + return ranker + #return metapy.index.OkapiBM25() if __name__ == '__main__': if len(sys.argv) != 2: