Definition at line 184 of file mainUtil.cpp. References Impala::Util::DatabaseReadStrings(), Impala::CmdOptions::GetArg(), Impala::Util::Database::GetInstance(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, ILOG_VAR, Impala::Core::Trec::SearchJudge::Judge(), and Impala::Core::Trec::SearchJudge::Stats(). Referenced by mainUtil(). 00185 { 00186 #ifndef REPOSITORY_TODO 00187 ILOG_VAR(Impala.Application.Util.DoTrecJudge); 00188 CmdOptions& options = CmdOptions::GetInstance(); 00189 if (options.GetNrArg() < 4) 00190 { 00191 ILOG_ERROR("Need at least 4 arguments"); 00192 return; 00193 } 00194 String judgeFile = options.GetArg(1); 00195 String shotFile = options.GetArg(2); 00196 String topic = options.GetArg(3); 00197 Core::Trec::SearchJudge judge(judgeFile); 00198 judge.Stats(); 00199 std::vector<String> shots; 00200 Impala::Util::Database* db = &Impala::Util::Database::GetInstance(); 00201 Impala::Util::DatabaseReadStrings(shots, shotFile, db); 00202 00203 Real64 infAP = judge.Judge(topic, shots); 00204 std::cout << "infAP = " << infAP << std::endl; 00205 #endif 00206 }
Here is the call graph for this function:
|