xapian-core
1.5.0
|
Class for diversifying an MSet using GLS-MPT as given in the paper: Scalable and Efficient Web Search Result Diversification Naini et al. More...
Public Member Functions | |
Diversify (const Diversify &other) | |
Copying is allowed. More... | |
Diversify & | operator= (const Diversify &other) |
Assignment is allowed. More... | |
Diversify (Diversify &&other) | |
Move constructor. More... | |
Diversify & | operator= (Diversify &&other) |
Move assignment operator. More... | |
Diversify (Xapian::doccount k_, Xapian::doccount r_, double lambda_=0.5, double b_=5.0, double sigma_sqr_=1e-3) | |
Constructor specifying the number of diversified search results. More... | |
~Diversify () | |
Destructor. | |
Xapian::DocumentSet | get_dmset (const MSet &mset) |
Implements diversification. More... | |
std::string | get_description () const |
Return a string describing this object. | |
Class for diversifying an MSet using GLS-MPT as given in the paper: Scalable and Efficient Web Search Result Diversification Naini et al.
2016
Xapian::Diversify::Diversify | ( | const Diversify & | other | ) |
Copying is allowed.
The internals are reference counted, so copying is cheap.
other | The object to copy. |
Xapian::Diversify::Diversify | ( | Diversify && | other | ) |
Move constructor.
other | The object to move. |
|
explicit |
Constructor specifying the number of diversified search results.
k_ | Number of required diversified documents in the diversified document set |
r_ | Number of documents from each cluster used for building topC |
lambda_ | Trade-off between relevance of top-k diversified document set and its similarity to the rest of the documents in the document match set. Belongs to the range [0,1] with 0 meaning no weighting to relevance of the diversified document set and 1 allowing for full weighting to relevance of the diversified document set. |
b_ | Parameter for MPT, normally in the range [1,10] |
sigma_sqr_ | Parameter for MPT, normally in the range [1e-6,1] |
Xapian::DocumentSet Xapian::Diversify::get_dmset | ( | const MSet & | mset | ) |
Implements diversification.
Performs GLS-MPT and returns documents of which top-k are diversified.
mset | MSet object containing the documents of which top-k are to be diversified |
Assignment is allowed.
The internals are reference counted, so assignment is cheap.
other | The object to copy. |
Move assignment operator.
other | The object to move. |