Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Application::Util::DoTrecJudge (  ) 

Definition at line 234 of file mainUtil.cpp.

References Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, ILOG_VAR, Impala::Core::Trec::SearchJudge::Judge(), Impala::Persistency::File::ReadStrings(), Impala::Persistency::RepositoryGetFile(), and Impala::Core::Trec::SearchJudge::Stats().

Referenced by mainUtil().

00235 {
00236     ILOG_VAR(Impala.Application.Util.DoTrecJudge);
00237     CmdOptions& options = CmdOptions::GetInstance();
00238     if (options.GetNrArg() < 4)
00239     {
00240         ILOG_ERROR("Need at least 4 arguments");
00241         return;
00242     }
00243     String judgeFile = options.GetArg(1);
00244     String shotFile = options.GetArg(2);
00245     String topic = options.GetArg(3);
00246     Core::Trec::SearchJudge judge(judgeFile);
00247     judge.Stats();
00248     std::vector<String> shots;
00249     Persistency::File file = RepositoryGetFile(shotFile, false, false);
00250     file.ReadStrings(shots);
00251 
00252     Real64 infAP = judge.Judge(topic, shots);
00253     std::cout << "infAP = " << infAP << std::endl;
00254 }

Here is the call graph for this function:


Generated on Thu Jan 13 09:16:27 2011 for ImpalaSrc by  doxygen 1.5.1