[Xapian-devel] A Little Help
parthg.88 at gmail.com
Fri Jul 27 15:50:08 BST 2012
I think its better not to expose RankiList to Letor.h and make it better
user friendly. So my suggestion is to convert RankList to the following
statement in this method.
std::map<Xapian::docid, double> letor_score(const Xapian::MSet & mset);
So just convert the RankList in std::map<Xapian::docid, double> format in
the methods where you need to return.
On Fri, Jul 27, 2012 at 5:06 PM, Rishabh Mehrotra <erishabh at gmail.com>wrote:
> I had a little doubt: How do I make a RankList recognizable in Letor.h?
> *letor.h* resides in *xapian/xapian-letor/include/xapian/* whereas *
> ranklist.h* resides in *xapian/xapian-letor/*. I want a function in
> letor.cc to return a RankList so the function declaration in letor.h
> requires RankList to be recognized.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Xapian-devel