cascadeCost = ranker.getCascadeCost();
}
else{
// Retrieve documents using this MRF.
MRFDocumentRanker ranker = new MRFDocumentRanker(mrf, mNumHits);
if (mExpander != null) {
results = ranker.rank();
}
// Perform pseudo-relevance feedback, if requested.
if (mExpander != null) {
// Get expanded MRF.
MarkovRandomField expandedMRF = mExpander.getExpandedMRF(mrf, results);
// Re-rank documents according to expanded MRF.
ranker = new MRFDocumentRanker(expandedMRF, mNumHits);
}
// Rank the documents.
results = ranker.rank();
//cascadeCost = ranker.getCost();
cascadeCost = -1; //todo: later
}