public void reduce(Text key, Iterable<Text> values,
				Context context) throws IOException, InterruptedException {

			Map<String, Integer> keyWordMap = new HashMap<String, Integer>();
			Integer count = 0;

			for (Text val : values) {
				String keyWord = val.toString();
				if (keyWordMap.containsKey(keyWord)) {
					count = keyWordMap.get(keyWord) + 1;
				} else {
					count = 1;
				}
				keyWordMap.put(keyWord, count);
			}
			
			String value = "";
			for(String keyWord: keyWordMap.keySet()) {
				value = value + Constants.SPLIT_FLAG + keyWord + Constants.RANK_SPLIT_FLAG + keyWordMap.get(keyWord);
			}
			result.set(value);
			context.write(key, result);
		}