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: