public void saveIteratedModel(int iters, String savePath) throws IOException {
		//lda.phi K*V
		BufferedWriter writer = new BufferedWriter(new FileWriter(savePath + ".phi"));		
		for (int i = 0; i < K; i++){
			for (int j = 0; j < V; j++){
				writer.write(phi[i][j] + "\t");
			}
			writer.write("\n");
		}
		writer.close();

		//lda.theta M*K
		writer = new BufferedWriter(new FileWriter(savePath + ".theta"));
		for(int i = 0; i < M; i++){
			for(int j = 0; j < K; j++){
				writer.write(theta[i][j] + "\t");
			}
			writer.write("\n");
		}
		writer.close();

		//lda.tassign
		writer = new BufferedWriter(new FileWriter(savePath + ".tassign"));
		for(int m = 0; m < M; m++){
			for(int n = 0; n < doc[m].size(); n++){
				writer.write(doc[m].get(n) + ":" + z[m][n] + "\t");
			}
				writer.write("\n");
		}
		writer.close();
	}