Letor: returning MSet after re-ranking

Ayush Tomar <[email protected]>
Newsgroups gmane.comp.search.xapian.devel
Message-ID <CAPx_PWkz7_S5YqGGJzOrg8tqmarY-E_gtGt_-tHuVfframxCxA@mail.gmail.com>
Hello James,

As it was discussed, at present letor_rank(const Xapian::MSet & mset)
method returns a vector of sorted docids after performing re-ranking,
whereas ideally, it should return a re-ranked MSet.

To be able to do this, I was thinking of adding rerank_mset(vector<double>
updated_weights) method to mset.h, which basically updates the weight of
each MSetItem in MSet with weights (or score, in terms of letor) obtained
after re-ranking, and then sorts the vector<Xapian::Internal::MSetItems>
items by these updated weights.

What do you think about this?

Regards,
Ayush
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.