protected void debugOutput(int topK, String filePrefix) {
		File parentTopicFolder = new File(filePrefix + "parentTopicAssignment");
		File childTopicFolder = new File(filePrefix + "childTopicAssignment");

		if (!parentTopicFolder.exists()) {
			System.out.println("creating directory" + parentTopicFolder);
			parentTopicFolder.mkdir();
		}

		if (!childTopicFolder.exists()) {
			System.out.println("creating directory" + childTopicFolder);
			childTopicFolder.mkdir();
		}

		File parentWordTopicDistributionFolder = new File(filePrefix
				+ "wordTopicDistribution");
		if (!parentWordTopicDistributionFolder.exists()) {
			System.out.println("creating word topic distribution folder\t"
					+ parentWordTopicDistributionFolder);
			parentWordTopicDistributionFolder.mkdir();
		}

		for (_Doc d : m_trainSet) {
			if (d instanceof _ParentDoc) {
				// printParentTopicAssignment(d, parentTopicFolder);
				printWordTopicDistribution(d,
						parentWordTopicDistributionFolder, topK);
			} else {
				printChildTopicAssignment(d, childTopicFolder);
			}
		}

		String parentParameterFile = filePrefix + "parentParameter.txt";
		String childParameterFile = filePrefix + "childParameter.txt";

		printParameter(parentParameterFile, childParameterFile, m_trainSet);
		printTopKChild4Stn(filePrefix, topK);
	}