src/textgen/MarkovTextGeneratorLoL.java
/** 
	 * Generate the number of words requested.
	 */
Generate the number of words requested.
Generate the number of words requested .
@Override
	public String generateText(int numWords) {
		String output="";
		System.out.println(""+wordList.size());
		if(null!=wordList && wordList.size()!=0 && numWords>0){
			System.out.println(" hey did i enter here...");
	    String currWord = starter;
	    System.out.println("starter ="+starter);
		output=output.concat(currWord);
		ListNode node =null;
		for(int i=0;i<numWords;i++){
			node = getExistingNode(currWord);
			String w=node.getRandomNextWord(rnGenerator);
			output=output.concat(" " + w.trim());
			currWord=w;
		}
		}
		return output;
	}
@ Override public String generateText ( int numWords ) { String output = "" ; System . out . println ( "" + wordList . size ( ) ) ; if ( null != wordList && wordList . size ( ) != 0 && numWords > 0 ) { System . out . println ( " hey did i enter here..." ) ; String currWord = starter ; System . out . println ( "starter =" + starter ) ; output = output . concat ( currWord ) ; ListNode node = null ; for ( int i = 0 ; i < numWords ; i ++ ) { node = getExistingNode ( currWord ) ; String w = node . getRandomNextWord ( rnGenerator ) ; output = output . concat ( " " + w . trim ( ) ) ; currWord = w ; } } return output ; }
Generate the number of words requested.
Generate the number of words requested .
//System.out.println(""+wordList.size());