Definition at line 506 of file mainTable.cpp. References Impala::CmdOptions::GetArg(), Impala::Util::Database::GetInstance(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, ILOG_VAR, Impala::Core::Table::Read(), and Impala::Core::Feature::FeatureTable::WriteSvmFile(). Referenced by mainTable(). 00507 { 00508 typedef Core::Feature::FeatureTable FeatureTable; 00509 typedef Core::Table::AnnotationTable AnnotationTable; 00510 00511 ILOG_VAR(Impala.Application.Table.DoFeatureTable2Svm); 00512 CmdOptions& options = CmdOptions::GetInstance(); 00513 Util::Database* db = &Util::Database::GetInstance(); 00514 if (options.GetNrArg() < 3) 00515 { 00516 ILOG_ERROR("Need more arguments"); 00517 return; 00518 } 00519 String fName = options.GetArg(1); 00520 String svmName = options.GetArg(2); 00521 AnnotationTable* truth = 0; 00522 if (options.GetNrArg() > 3) 00523 { 00524 truth = AnnotationTable::MakeFromFile("", options.GetArg(3), db); 00525 } 00526 FeatureTable table(fName); 00527 Core::Table::Read(&table, fName, db); 00528 table.WriteSvmFile(svmName, db, truth); 00529 }
Here is the call graph for this function:
|