You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JsonVectorCollection weights are not obeyed for long terms #1843
@mpetri, @amallia, and I have come across a weird bug where an input JsonVectorCollection will have its weights broken by long terms, possibly impacting downstream ranking.
The specific bug is because of a series of design choices.
Anserini "clones" a term with a given weight value weight times (pseudo document generation) to offload the actual indexing to Lucene (without tinkering with internals).
Assume you have a term coming into your vector with 256 characters and a weight of 200.
What happens is that term is split at the 255th character, leaving the final character dangling as its own term. Then, this can mess up the underlying impacts.
Activity
lintool commentedon Apr 14, 2022
wow, what an obscure bug!
How about we just drop all terms longer than 255 chars? They are unlikely to be meaningful anyway?
JMMackenzie commentedon Apr 14, 2022
Is it possible to log output if so? But yeah, this would at least be better than silently mutating those terms I think...
lintool commentedon Apr 14, 2022
sure!
Issue noted and PR welcome - but this is lowish on our priority list to fix...