private void printToFiles(){
		try {
			BufferedWriter writer = new BufferedWriter(new FileWriter(("Data/TagTableData/tagFrequencies.txt")));
			BufferedWriter writer2 = new BufferedWriter(new FileWriter("Data/TagTableData/wordTagFrequencies.txt"));
			BufferedWriter writer3 = new BufferedWriter(new FileWriter("Data/TagTableData/precedingPosFrequencies.txt"));
            BufferedWriter writer4 = new BufferedWriter(new FileWriter("Data/TagTableData/precedingTwoPosFrequencies.txt"));

			for(PartOfSpeechTag tag : tagFrequencies.keySet()){
				writer.write("Tag:" + tag.name() + ", Frequency:" + tagFrequencies.get(tag)+"\n");
				totalFrequency += tagFrequencies.get(tag);
			}
			writer.close();

			for(String word: wordTagFrequencies.keySet()){
				writer2.write(word+"{");
				for(PartOfSpeechTag tag : wordTagFrequencies.get(word).keySet()){
					writer2.write(" Tag:"+tag.name()+", Frequency:"+wordTagFrequencies.get(word).get(tag)+";");
				}
				writer2.write("}\n");
			}
			writer2.close();

			for(PartOfSpeechTag tag : precedingPosFrequencies.keySet()){
				writer3.write(tag.name()+"{");
				for(PartOfSpeechTag preceding : precedingPosFrequencies.get(tag).keySet()){
					writer3.write(" Tag:"+preceding.name()+", Frequency:"+precedingPosFrequencies.get(tag).get(preceding)+";");
				}
				writer3.write("}\n");
			}
			writer3.close();

            for(PartOfSpeechTag tag : precedingTwoPosFrequencies.keySet()){
                writer4.write(tag.name()+"{");
                for(List<PartOfSpeechTag> preceding : precedingTwoPosFrequencies.get(tag).keySet()){
                    writer4.write(" Tags: ");
                    for(PartOfSpeechTag pos : preceding){
                        writer4.write(pos.name()+" ");
                    }
                    writer4.write(", Frequency:" + precedingTwoPosFrequencies.get(tag).get(preceding)+";");
                }
                writer4.write("}\n");
            }
            writer4.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}