Skip to content

Commit

Permalink
fix setting language for hsearch (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
MXueguang authored Jun 10, 2021
1 parent 1b6a1f1 commit f614111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyserini/hsearch/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def parse_args(parser, commands):
set_bm25_parameters(ssearcher, args.sparse.index, args.sparse.k1, args.sparse.b)

if args.sparse.language != 'en':
ssearcher.set_language(args.language)
ssearcher.set_language(args.sparse.language)

hsearcher = HybridSearcher(dsearcher, ssearcher)
if not hsearcher:
Expand Down

0 comments on commit f614111

Please sign in to comment.