public static String makeSegText(String[] units, Boolean[] stresses,
			Boolean[] segmentation) {
		StringBuilder out = new StringBuilder();
		// Connect all but the last unit with the right connection, then add on
		// the final one
		for (int i=0; i < units.length - 1; i++) {
			out.append(units[i]);
			if (stresses[i]) out.append("(1)");
			out.append(segmentation[i] ? WORD_BOUNDARY : SYLL_BOUNDARY);
		}
		// Stick on final unit and stress
		out.append(units[units.length - 1]);
		if (stresses[units.length - 1]) out.append("(1)");

		return out.toString();
	}