public static void main(String[] args) {
		// TODO Auto-generated method stub
		

		func = ScoreFunctionFactory.getScoreFunction(mode);
		int suffix = 0;
		if (ROOTDIR.equals("/home/graveendran/Downloads/DUC")) {
			suffix = 1;
		}
		if (mode == ScoreFunctionFactory.Mode.KLSUM) {
			((KLSumPlusScoreFunction) func)
					.setBackgroundCorpus(ROOTDIR, suffix);
		}
		String fname = null;
		String docset = ".Crawler";
		if (ROOTDIR.equals("/home/graveendran/Downloads/DUC")) {
			docset = ".DUC";
		}
		if (mode == ScoreFunctionFactory.Mode.RANDOM) {
			fname = "Random";
			Document.initialize(Document.ParseMode.WORD_TOKENIZE);
		} else if (mode == ScoreFunctionFactory.Mode.KLSUM) {
			fname = "KLSum";
			Document.initialize(Document.ParseMode.WORD_TOKENIZE);
		} else if (mode == ScoreFunctionFactory.Mode.SUMBASIC) {
			fname = "SumBasic";
			Document.initialize(Document.ParseMode.WORD_TOKENIZE);
		}
		fname += docset;
		p = new Printer(Printer.Type.BOTH, fname);
		p.startRow();
		p.addColumn("Topic", Printer.Type.BOTH);
		p.addColumn("Num Comments", Printer.Type.BOTH);
		p.addColumn("Num Sentences", Printer.Type.BOTH);
		p.addColumn("Summary Word Count", Printer.Type.BOTH);
		p.addColumn("Execution Time", Printer.Type.TIMING);
		p.addColumn("Summary", Printer.Type.TEXT);
		p.endRow();

		props.put("annotators", "tokenize, ssplit");
		pipeline = new StanfordCoreNLP(props);

		Path startingDir = FileSystems.getDefault().getPath(ROOTDIR);
		try {
			long start = System.currentTimeMillis();
			Files.walkFileTree(startingDir, new KLSumVisitor());
			long end = System.currentTimeMillis();
			System.out.println(end - start);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}