public void writeSentenceToDirectory(String directory, Boolean classifier) throws IOException {
		File dir = new File(directory);
		File posDir = new File(directory + "/pos");
		File negDir = new File(directory + "/neg");

		if (dir.exists()) {
			if (!posDir.exists())
				posDir.mkdir();
			if (!negDir.exists())
				negDir.mkdir();
			
			if(classifier) dir = posDir;
			else dir = negDir;
		} else
			throw new IOException("Directory doesn't exist");

		BufferedWriter writer = new BufferedWriter(new FileWriter(new File(
				dir + "/" + ++counter + ".txt"), false));
		writer.write(this.sentence);
		writer.close();

	}