// Lemur code snippet for RetEval application. Copyright 2008 Chirag Shah. // This code goes through a list of terms and prints their weights. // Output: lemur::api::TextQueryRep * myRep = dynamic_cast(qr); myRep->startIteration(); while (myRep->hasMore()) { lemur::api::QueryTerm *qt = myRep->nextTerm(); cout<id()<<" "<weight()<