public void writeToFile(String fileName, boolean append) throws IOException {
		BufferedWriter writer = new BufferedWriter(new FileWriter(new File(
				fileName), append));
		for (String s : this.words) {
			writer.write(s + " ");
		}
		writer.newLine();

		for (String s : this.posTags) {
			writer.write(s + " ");
		}
		writer.newLine();

		for (String s : this.namedEntity) {
			writer.write(s + " ");
		}
		// writer.newLine();
		// writer.write("Goal: " + this.containsGoal + ", Goal Probability: " +
		// this.goalProbability);
		// writer.newLine();

		writer.newLine();
		writer.newLine();
		writer.close();
	}