public void saveIteratedModel(int iteration, Documents docSet) throws IOException {
		// TODO Auto-generated method stub
		// model.params model.theta model.phi model.psi model.varphi model.tau
		String resPath = PathConfig.resDataPath +"model_" + iteration;
		FileUtil.write2DArray(docTopicPros, resPath + ".docTopicPros");
		FileUtil.write2DArray(topicTermPros, resPath + ".topicTermPros");

		// model.zassign

		int topNum = ParamConfig.topTopicWordNum;
		// model.zterms
		ArrayList<String> ztermsLines = new ArrayList<String>();
		for (int i = 0; i < topicNum; i++) {
			List<Integer> tWordsIndexArray = new ArrayList<Integer>();
			for (int w = 0; w < M; w++) {
				tWordsIndexArray.add(new Integer(w));
			}
			Collections.sort(tWordsIndexArray,
					new Plsa.TwordsComparable(topicTermPros[i]));
			String line = "topic=" + i + "\t";
			for (int w = 0; w < topNum; w++) {
				line += docSet.indexToTermMap.get(tWordsIndexArray.get(w)) + "\t";
			}
			ztermsLines.add(line);
		}
		FileUtil.writeLines(resPath + ".zterms", ztermsLines);
	}