public static void main(String[] args) throws URISyntaxException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		TestAlgorithm test = new TestAlgorithm();
		try {
			System.out.println("Please enter algorithm name, file name and minimal support level, separate by space.");
			String input = br.readLine();
			if (input != null){
				String[] cmd = input.split(" ");
				if(cmd !=null && cmd.length == 3 && Integer.valueOf(cmd[2]) != null){
					String method = cmd[0];
					test.setAlgorithm(method);
					List<List<String>> dataList = test.fetchDataList(cmd[1]);
					
					test.setUp(dataList, Integer.valueOf(cmd[2]));
					test.run();
					test.finish();
					
					System.out.println("The frequency sets are following(size "+test.getFrequencySets().size()+"):");
					for (TreeSet<String> set : test.getFrequencySets()){
						System.out.println("Set:");
						for(String s : set){
							System.out.print(s+" ");
						}
						System.out.println();
					}
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				br.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}