superml
superml copied to clipboard
bm_25 function: top_n argument has no effect
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)