-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
43 lines (33 loc) · 915 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* File: main.cpp
* Author: Kapil Thakkar
*
*/
#include <cstdlib>
#include "SessionOrganizer.h"
using namespace std;
/*
*
*/
int main(int argc, char **argv)
{
// Parse the input.
if (argc < 3)
{
cout << "Missing arguments\n";
cout << "Correct format : \n";
cout << "./main <input_filename> <output_filename>";
exit(0);
}
string inputfilename(argv[1]);
// Initialize the conference organizer.
SessionOrganizer *organizer = new SessionOrganizer(inputfilename);
// Organize the papers into tracks based on similarity.
organizer->organizePapers();
organizer->printSessionOrganiser(argv[2]);
// Score the organization against the gold standard.
// double score = organizer->scoreOrganization();
// cout << "score:" << score << endl;
delete organizer;
return 0;
}