public static HashMap<String, Integer> nGramMapper(String countFile)
			throws IOException {

		HashMap<String, Integer> nGramMap = new HashMap<String, Integer>();
		FileReader in = new FileReader(countFile);
		BufferedReader br = new BufferedReader(in);

		String input;

		while ((input = br.readLine()) != null) {
			if (!input.contains("WORDTAG") && input.length() > 0) {
				int firstSpacePos = input.indexOf(' ');
				int nGramCount = Integer.parseInt(input.substring(0,
						firstSpacePos));
				String nGram = input.substring(firstSpacePos + 1);
				nGramMap.put(nGram, new Integer(nGramCount));
			}
		}

		return nGramMap;
	}