public static void main(String[] argv) {
		if (argv.length == 1) {
			if (argv[0].equals("--dump-defaults")) {
				CommentedProperties comProps = defaultProperties();
				try {
					comProps.getProperties().store(System.out, comProps.getComments());
				} catch (IOException e) {
					System.err.println("Couldn't write defaults to standard out.");
				}
				System.exit(1);
			}
		}
		else if (argv.length == 4) {
			String trainPath = argv[0];
			String testPath = argv[1];
			String outPath = argv[2];
			String propsPath = argv[3];
			callSegmenter(trainPath, testPath, outPath, propsPath);
		}
		else {
			// If we fell through, print usage
			System.err.println("Usage: Segment train_file test_file|none output_base properties_file");
			System.err.println("To generate a properties file with defaults, run:");
			System.err.println("Segment --dump-defaults");
			System.exit(64);
		}
	}