superml icon indicating copy to clipboard operation
superml copied to clipboard

bm_25 function: top_n argument has no effect

Open ekianjo opened this issue 1 year ago • 0 comments

Hi there, it looks like the top_n argument in the bm_25 function does not do anything. Unless I am mistaken about its role, I would expect that it returns only the top matching resulting and not all of them. Right now, it seems to return all bm25 scores regardless of top_n values.

s <- bm_25(document=sentence, corpus=docs, top_n=2)

ekianjo avatar Jan 26 '25 14:01 ekianjo