src/yang/weiwei/mtm/MTM.java
/**
	 * Write topics' top words to file
	 * @param resultFileName Result file name
	 * @param numTopWords Number of top words
	 * @throws IOException IOException
	 */
Write topics' top words to file
@param resultFileName Result file name
@param numTopWords Number of top words
@throws IOException IOException
Write topics ' top words to file @param resultFileName Result file name @param numTopWords Number of top words @throws IOException IOException
public void writeResult(String resultFileName, int numTopWords) throws IOException
	{
		BufferedWriter bw=new BufferedWriter(new FileWriter(resultFileName));
		for (int lang=0; lang<param.numLangs; lang++)
		{
			for (int topic=0; topic<param.numTopics[lang]; topic++)
			{
				bw.write(topWordsByFreq(lang, topic, numTopWords));
				bw.newLine();
			}
		}
		bw.close();
	}
public void writeResult ( String resultFileName , int numTopWords ) throws IOException { BufferedWriter bw = new BufferedWriter ( new FileWriter ( resultFileName ) ) ; for ( int lang = 0 ; lang < param . numLangs ; lang ++ ) { for ( int topic = 0 ; topic < param . numTopics [ lang ] ; topic ++ ) { bw . write ( topWordsByFreq ( lang , topic , numTopWords ) ) ; bw . newLine ( ) ; } } bw . close ( ) ; }
Write topics' top words to file
 @param resultFileName Result file name
 @param numTopWords Number of top words
 @throws IOException IOException
Write topics ' top words to file @param resultFileName Result file name @param numTopWords Number of top words @throws IOException IOException