Skip to content

pyserini.search.lucene recall result not good as LuceneSearcher.search #1824

Answered by better629
better629 asked this question in Q&A
Discussion options

You must be logged in to vote

@lintool I found the reason, due to the query string contain \n \r, so has a escaping like from \n to \\n and write to tsv file(if using \n, write to tsv failed). And then, the text from query_iterator is a little different from raw string. This cause the recall result difference.

After input raw string as a param into search.lucene, both got same results.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
7 replies
@lintool
Comment options

@better629
Comment options

@lintool
Comment options

@better629
Comment options

@lintool
Comment options

Comment options

You must be logged in to vote
1 reply
@lintool
Comment options

Answer selected by better629
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1823 on March 20, 2024 15:46.