public void writeCorpusToFile(String fileName) throws IOException {
		BufferedWriter out = new BufferedWriter(new FileWriter(new File(fileName)));
		out.write("<?xml version='1.0' encoding='UTF-8'?>");
		out.write("\n<corpus corpusname=\"tagged-corpus\">");
		out.write("\n\t<head>");
		out.write("\n\t</head>");
		out.write("\n\t<body>");
		for (Sentence sentence : sentences) {
			out.write(sentence.toString());
		}
		out.write("\n\t</body>");
		out.write("\n</corpus>");
		out.close();
	}