public static Result[] callSegmenter(String trainPath, String testPath, String outPath,
			String propsPath){
		long startTime = System.currentTimeMillis();

		// Decide whether we're going to separate test and training data
		boolean useTestData = !NO_TEST_FILE.equals(testPath.toLowerCase());

		// Load gold utterances and lexicon
		long loadTime = System.currentTimeMillis();
		List<Utterance> goldTrainUtterances = Utterance.loadUtterances(trainPath);
		if (goldTrainUtterances == null) {
			System.err.println("Could not reading training file " + trainPath);
			System.exit(1);
		}
		loadTime = System.currentTimeMillis() - loadTime;
		System.out.println("Loading training data took " + loadTime / 1000F + " seconds.");

		List<Utterance> goldTestUtterances = null;
		if (useTestData) {
			loadTime = System.currentTimeMillis();
			goldTestUtterances = Utterance.loadUtterances(testPath);
			if (goldTestUtterances == null) {
				System.err.println("Could not reading testing file " + testPath);
				System.exit(1);
			}
			loadTime = System.currentTimeMillis() - loadTime;
			System.out.println("Loading testing data took " + loadTime / 1000F + " seconds.");
		}

		// Load props
		Properties props = Utils.loadProps(propsPath);
		boolean stress_sensitive_lookup = new Boolean(props.getProperty(STRESS_SENSITIVE_PROP));
		String segmenterName = props.getProperty(SEGMENTER_PROP);
		System.out.println("Running segmenter " + segmenterName);

		// Create the gold lexicons
		Lexicon goldTrainLexicon = Lexicon.lexiconFromUtterances(goldTrainUtterances,
				stress_sensitive_lookup);
		Lexicon goldTestLexicon = null;
		if (useTestData) {
			goldTestLexicon = Lexicon.lexiconFromUtterances(goldTrainUtterances,
					stress_sensitive_lookup);
		}

		// Segment
		Result[] evalResults = runSegmenter(goldTrainUtterances, goldTrainLexicon,
				goldTestUtterances, goldTestLexicon, props, outPath, true);

		long endTime = System.currentTimeMillis() - startTime;
		System.out.println("Run took " + endTime / 1000F + " seconds.");
		return evalResults;
	}