@Test public void testDoPOSAndEMMCheckOfThreeForMap() { fail("Not yet implemented"); }
public int doPOSAndEMMCheckOfThreeForMap(int countInputLength, Map<String, WordFrequency> outputList , Map<String, String> wordsForest, StringBuilder stringBuilder, StringBuilder[] prefixWord , POSController posUtils){ String inputString= stringBuilder.toString(); if (wordsForest.containsKey(inputString)){ WordForestUtil.wordsForestContainsKey(outputList, inputString, prefixWord); return countInputLength; } String[] strings= new String[StableData.INT_FOUR]; strings[StableData.INT_ZERO]= String.valueOf(inputString.charAt(StableData.INT_ZERO)); strings[StableData.INT_ONE]= String.valueOf(inputString.charAt(StableData.INT_ZERO)) + inputString.charAt(StableData.INT_ONE); strings[StableData.INT_TWO]= String.valueOf(inputString.charAt(StableData.INT_ONE) + inputString.charAt(StableData.INT_TWO)); strings[StableData.INT_THREE]= String.valueOf(inputString.charAt(StableData.INT_TWO)); if (null== prefixWord[StableData.INT_ZERO]){ if (wordsForest.containsKey(inputString)){ WordForestUtil.wordsForestContainsKey(outputList, inputString, prefixWord); return countInputLength; } StringBuilder stringsBuilder= new StringBuilder(); countInputLength= doSlangPartAndPOSCheckForTwoCharForMap(--countInputLength, outputList , stringsBuilder.append(strings[StableData.INT_ONE]), wordsForest, prefixWord, posUtils); return countInputLength; } if (!wordsForest.containsKey(strings[StableData.INT_ZERO])){ StringBuilder stringsBuilder= new StringBuilder(); countInputLength= doSlangPartAndPOSCheckForTwoCharForMap(--countInputLength, outputList , stringsBuilder.append(strings[StableData.INT_ONE]), wordsForest, prefixWord, posUtils); return countInputLength; } if (StableMaps.zhuCi.containsKey(strings[StableData.INT_ZERO])){ countInputLength= posUtils.chuLiZhuCiOfThreeForMap(wordsForest, outputList, countInputLength , strings, prefixWord); return countInputLength; } if (StableMaps.liangCi.containsKey(strings[StableData.INT_ZERO])){ countInputLength= posUtils.chuLiLiangCiOfThreeForMap(wordsForest, outputList, countInputLength , strings, prefixWord); return countInputLength; } if (StableMaps.zhuCi.containsKey(strings[StableData.INT_ZERO])){ countInputLength= posUtils.chuLiJieCiOfThreeForMap(wordsForest, outputList, countInputLength , strings, prefixWord); return countInputLength; } if (StableMaps.lianCi.containsKey(strings[StableData.INT_ZERO])){ countInputLength= posUtils.chuLiLianCiOfThreeForMap(wordsForest, outputList, countInputLength , strings, prefixWord); return countInputLength; } StringBuilder stringsBuilder= new StringBuilder(); countInputLength= doSlangPartAndPOSCheckForTwoCharForMap(--countInputLength, outputList , stringsBuilder.append(strings[StableData.INT_ONE]), wordsForest, prefixWord, posUtils); return countInputLength; }
NLPControllerImp implements NLPController { public int doPOSAndEMMCheckOfThreeForMap(int countInputLength, Map<String, WordFrequency> outputList , Map<String, String> wordsForest, StringBuilder stringBuilder, StringBuilder[] prefixWord , POSController posUtils){ String inputString= stringBuilder.toString(); if (wordsForest.containsKey(inputString)){ WordForestUtil.wordsForestContainsKey(outputList, inputString, prefixWord); return countInputLength; } String[] strings= new String[StableData.INT_FOUR]; strings[StableData.INT_ZERO]= String.valueOf(inputString.charAt(StableData.INT_ZERO)); strings[StableData.INT_ONE]= String.valueOf(inputString.charAt(StableData.INT_ZERO)) + inputString.charAt(StableData.INT_ONE); strings[StableData.INT_TWO]= String.valueOf(inputString.charAt(StableData.INT_ONE) + inputString.charAt(StableData.INT_TWO)); strings[StableData.INT_THREE]= String.valueOf(inputString.charAt(StableData.INT_TWO)); if (null== prefixWord[StableData.INT_ZERO]){ if (wordsForest.containsKey(inputString)){ WordForestUtil.wordsForestContainsKey(outputList, inputString, prefixWord); return countInputLength; } StringBuilder stringsBuilder= new StringBuilder(); countInputLength= doSlangPartAndPOSCheckForTwoCharForMap(--countInputLength, outputList , stringsBuilder.append(strings[StableData.INT_ONE]), wordsForest, prefixWord, posUtils); return countInputLength; } if (!wordsForest.containsKey(strings[StableData.INT_ZERO])){ StringBuilder stringsBuilder= new StringBuilder(); countInputLength= doSlangPartAndPOSCheckForTwoCharForMap(--countInputLength, outputList , stringsBuilder.append(strings[StableData.INT_ONE]), wordsForest, prefixWord, posUtils); return countInputLength; } if (StableMaps.zhuCi.containsKey(strings[StableData.INT_ZERO])){ countInputLength= posUtils.chuLiZhuCiOfThreeForMap(wordsForest, outputList, countInputLength , strings, prefixWord); return countInputLength; } if (StableMaps.liangCi.containsKey(strings[StableData.INT_ZERO])){ countInputLength= posUtils.chuLiLiangCiOfThreeForMap(wordsForest, outputList, countInputLength , strings, prefixWord); return countInputLength; } if (StableMaps.zhuCi.containsKey(strings[StableData.INT_ZERO])){ countInputLength= posUtils.chuLiJieCiOfThreeForMap(wordsForest, outputList, countInputLength , strings, prefixWord); return countInputLength; } if (StableMaps.lianCi.containsKey(strings[StableData.INT_ZERO])){ countInputLength= posUtils.chuLiLianCiOfThreeForMap(wordsForest, outputList, countInputLength , strings, prefixWord); return countInputLength; } StringBuilder stringsBuilder= new StringBuilder(); countInputLength= doSlangPartAndPOSCheckForTwoCharForMap(--countInputLength, outputList , stringsBuilder.append(strings[StableData.INT_ONE]), wordsForest, prefixWord, posUtils); return countInputLength; } }
NLPControllerImp implements NLPController { public int doPOSAndEMMCheckOfThreeForMap(int countInputLength, Map<String, WordFrequency> outputList , Map<String, String> wordsForest, StringBuilder stringBuilder, StringBuilder[] prefixWord , POSController posUtils){ String inputString= stringBuilder.toString(); if (wordsForest.containsKey(inputString)){ WordForestUtil.wordsForestContainsKey(outputList, inputString, prefixWord); return countInputLength; } String[] strings= new String[StableData.INT_FOUR]; strings[StableData.INT_ZERO]= String.valueOf(inputString.charAt(StableData.INT_ZERO)); strings[StableData.INT_ONE]= String.valueOf(inputString.charAt(StableData.INT_ZERO)) + inputString.charAt(StableData.INT_ONE); strings[StableData.INT_TWO]= String.valueOf(inputString.charAt(StableData.INT_ONE) + inputString.charAt(StableData.INT_TWO)); strings[StableData.INT_THREE]= String.valueOf(inputString.charAt(StableData.INT_TWO)); if (null== prefixWord[StableData.INT_ZERO]){ if (wordsForest.containsKey(inputString)){ WordForestUtil.wordsForestContainsKey(outputList, inputString, prefixWord); return countInputLength; } StringBuilder stringsBuilder= new StringBuilder(); countInputLength= doSlangPartAndPOSCheckForTwoCharForMap(--countInputLength, outputList , stringsBuilder.append(strings[StableData.INT_ONE]), wordsForest, prefixWord, posUtils); return countInputLength; } if (!wordsForest.containsKey(strings[StableData.INT_ZERO])){ StringBuilder stringsBuilder= new StringBuilder(); countInputLength= doSlangPartAndPOSCheckForTwoCharForMap(--countInputLength, outputList , stringsBuilder.append(strings[StableData.INT_ONE]), wordsForest, prefixWord, posUtils); return countInputLength; } if (StableMaps.zhuCi.containsKey(strings[StableData.INT_ZERO])){ countInputLength= posUtils.chuLiZhuCiOfThreeForMap(wordsForest, outputList, countInputLength , strings, prefixWord); return countInputLength; } if (StableMaps.liangCi.containsKey(strings[StableData.INT_ZERO])){ countInputLength= posUtils.chuLiLiangCiOfThreeForMap(wordsForest, outputList, countInputLength , strings, prefixWord); return countInputLength; } if (StableMaps.zhuCi.containsKey(strings[StableData.INT_ZERO])){ countInputLength= posUtils.chuLiJieCiOfThreeForMap(wordsForest, outputList, countInputLength , strings, prefixWord); return countInputLength; } if (StableMaps.lianCi.containsKey(strings[StableData.INT_ZERO])){ countInputLength= posUtils.chuLiLianCiOfThreeForMap(wordsForest, outputList, countInputLength , strings, prefixWord); return countInputLength; } StringBuilder stringsBuilder= new StringBuilder(); countInputLength= doSlangPartAndPOSCheckForTwoCharForMap(--countInputLength, outputList , stringsBuilder.append(strings[StableData.INT_ONE]), wordsForest, prefixWord, posUtils); return countInputLength; }  }
NLPControllerImp implements NLPController { public int doPOSAndEMMCheckOfThreeForMap(int countInputLength, Map<String, WordFrequency> outputList , Map<String, String> wordsForest, StringBuilder stringBuilder, StringBuilder[] prefixWord , POSController posUtils){ String inputString= stringBuilder.toString(); if (wordsForest.containsKey(inputString)){ WordForestUtil.wordsForestContainsKey(outputList, inputString, prefixWord); return countInputLength; } String[] strings= new String[StableData.INT_FOUR]; strings[StableData.INT_ZERO]= String.valueOf(inputString.charAt(StableData.INT_ZERO)); strings[StableData.INT_ONE]= String.valueOf(inputString.charAt(StableData.INT_ZERO)) + inputString.charAt(StableData.INT_ONE); strings[StableData.INT_TWO]= String.valueOf(inputString.charAt(StableData.INT_ONE) + inputString.charAt(StableData.INT_TWO)); strings[StableData.INT_THREE]= String.valueOf(inputString.charAt(StableData.INT_TWO)); if (null== prefixWord[StableData.INT_ZERO]){ if (wordsForest.containsKey(inputString)){ WordForestUtil.wordsForestContainsKey(outputList, inputString, prefixWord); return countInputLength; } StringBuilder stringsBuilder= new StringBuilder(); countInputLength= doSlangPartAndPOSCheckForTwoCharForMap(--countInputLength, outputList , stringsBuilder.append(strings[StableData.INT_ONE]), wordsForest, prefixWord, posUtils); return countInputLength; } if (!wordsForest.containsKey(strings[StableData.INT_ZERO])){ StringBuilder stringsBuilder= new StringBuilder(); countInputLength= doSlangPartAndPOSCheckForTwoCharForMap(--countInputLength, outputList , stringsBuilder.append(strings[StableData.INT_ONE]), wordsForest, prefixWord, posUtils); return countInputLength; } if (StableMaps.zhuCi.containsKey(strings[StableData.INT_ZERO])){ countInputLength= posUtils.chuLiZhuCiOfThreeForMap(wordsForest, outputList, countInputLength , strings, prefixWord); return countInputLength; } if (StableMaps.liangCi.containsKey(strings[StableData.INT_ZERO])){ countInputLength= posUtils.chuLiLiangCiOfThreeForMap(wordsForest, outputList, countInputLength , strings, prefixWord); return countInputLength; } if (StableMaps.zhuCi.containsKey(strings[StableData.INT_ZERO])){ countInputLength= posUtils.chuLiJieCiOfThreeForMap(wordsForest, outputList, countInputLength , strings, prefixWord); return countInputLength; } if (StableMaps.lianCi.containsKey(strings[StableData.INT_ZERO])){ countInputLength= posUtils.chuLiLianCiOfThreeForMap(wordsForest, outputList, countInputLength , strings, prefixWord); return countInputLength; } StringBuilder stringsBuilder= new StringBuilder(); countInputLength= doSlangPartAndPOSCheckForTwoCharForMap(--countInputLength, outputList , stringsBuilder.append(strings[StableData.INT_ONE]), wordsForest, prefixWord, posUtils); return countInputLength; }  int doSlangPartAndPOSCheckForTwoChar(int countInputStringLength, List<String> outputList
			, StringBuilder stringBuilder, Map<String, String> wordsForest, StringBuilder[] prefixWord
			, POSController posUtils, int charPosition, String textInputString); int doPOSAndEMMCheckOfThree(int countInputLength, List<String> outputList
			, Map<String, String> wordsForest, StringBuilder stringBuilder, StringBuilder[] prefixWord
			, POSController posUtils, int charPosition, String textInputString); int doSlangCheck(int countInputStringLength, List<String> output, StringBuilder stringBuilder,
			Map<String, String> wordsForest, StringBuilder[] prefixWord, POSController posUtils, int charPosition, String textInputString); int doSlangCheckForMap(int countInputStringLength, List<String> output, StringBuilder stringBuilder
			, Map<String, String> wordsForest, StringBuilder[] prefixWord, POSController posUtils, int charPosition, String textInputString); int doSlangPartAndPOSCheckForTwoCharForMap(int countInputStringLength, Map<String, WordFrequency> outputList
			, StringBuilder stringBuilder, Map<String, String> wordsForest, StringBuilder[] prefixWord
			, POSController posUtils); int doPOSAndEMMCheckOfThreeForMap(int countInputLength, Map<String, WordFrequency> outputList
			, Map<String, String> wordsForest, StringBuilder stringBuilder, StringBuilder[] prefixWord
			, POSController posUtils); int doSlangCheckForMap(int countInputStringLength, Map<String, WordFrequency> output, StringBuilder stringBuilder
			, Map<String, String> wordsForest, StringBuilder[] prefixWord, POSController posUtils); }
NLPControllerImp implements NLPController { public int doPOSAndEMMCheckOfThreeForMap(int countInputLength, Map<String, WordFrequency> outputList , Map<String, String> wordsForest, StringBuilder stringBuilder, StringBuilder[] prefixWord , POSController posUtils){ String inputString= stringBuilder.toString(); if (wordsForest.containsKey(inputString)){ WordForestUtil.wordsForestContainsKey(outputList, inputString, prefixWord); return countInputLength; } String[] strings= new String[StableData.INT_FOUR]; strings[StableData.INT_ZERO]= String.valueOf(inputString.charAt(StableData.INT_ZERO)); strings[StableData.INT_ONE]= String.valueOf(inputString.charAt(StableData.INT_ZERO)) + inputString.charAt(StableData.INT_ONE); strings[StableData.INT_TWO]= String.valueOf(inputString.charAt(StableData.INT_ONE) + inputString.charAt(StableData.INT_TWO)); strings[StableData.INT_THREE]= String.valueOf(inputString.charAt(StableData.INT_TWO)); if (null== prefixWord[StableData.INT_ZERO]){ if (wordsForest.containsKey(inputString)){ WordForestUtil.wordsForestContainsKey(outputList, inputString, prefixWord); return countInputLength; } StringBuilder stringsBuilder= new StringBuilder(); countInputLength= doSlangPartAndPOSCheckForTwoCharForMap(--countInputLength, outputList , stringsBuilder.append(strings[StableData.INT_ONE]), wordsForest, prefixWord, posUtils); return countInputLength; } if (!wordsForest.containsKey(strings[StableData.INT_ZERO])){ StringBuilder stringsBuilder= new StringBuilder(); countInputLength= doSlangPartAndPOSCheckForTwoCharForMap(--countInputLength, outputList , stringsBuilder.append(strings[StableData.INT_ONE]), wordsForest, prefixWord, posUtils); return countInputLength; } if (StableMaps.zhuCi.containsKey(strings[StableData.INT_ZERO])){ countInputLength= posUtils.chuLiZhuCiOfThreeForMap(wordsForest, outputList, countInputLength , strings, prefixWord); return countInputLength; } if (StableMaps.liangCi.containsKey(strings[StableData.INT_ZERO])){ countInputLength= posUtils.chuLiLiangCiOfThreeForMap(wordsForest, outputList, countInputLength , strings, prefixWord); return countInputLength; } if (StableMaps.zhuCi.containsKey(strings[StableData.INT_ZERO])){ countInputLength= posUtils.chuLiJieCiOfThreeForMap(wordsForest, outputList, countInputLength , strings, prefixWord); return countInputLength; } if (StableMaps.lianCi.containsKey(strings[StableData.INT_ZERO])){ countInputLength= posUtils.chuLiLianCiOfThreeForMap(wordsForest, outputList, countInputLength , strings, prefixWord); return countInputLength; } StringBuilder stringsBuilder= new StringBuilder(); countInputLength= doSlangPartAndPOSCheckForTwoCharForMap(--countInputLength, outputList , stringsBuilder.append(strings[StableData.INT_ONE]), wordsForest, prefixWord, posUtils); return countInputLength; }  int doSlangPartAndPOSCheckForTwoChar(int countInputStringLength, List<String> outputList
			, StringBuilder stringBuilder, Map<String, String> wordsForest, StringBuilder[] prefixWord
			, POSController posUtils, int charPosition, String textInputString); int doPOSAndEMMCheckOfThree(int countInputLength, List<String> outputList
			, Map<String, String> wordsForest, StringBuilder stringBuilder, StringBuilder[] prefixWord
			, POSController posUtils, int charPosition, String textInputString); int doSlangCheck(int countInputStringLength, List<String> output, StringBuilder stringBuilder,
			Map<String, String> wordsForest, StringBuilder[] prefixWord, POSController posUtils, int charPosition, String textInputString); int doSlangCheckForMap(int countInputStringLength, List<String> output, StringBuilder stringBuilder
			, Map<String, String> wordsForest, StringBuilder[] prefixWord, POSController posUtils, int charPosition, String textInputString); int doSlangPartAndPOSCheckForTwoCharForMap(int countInputStringLength, Map<String, WordFrequency> outputList
			, StringBuilder stringBuilder, Map<String, String> wordsForest, StringBuilder[] prefixWord
			, POSController posUtils); int doPOSAndEMMCheckOfThreeForMap(int countInputLength, Map<String, WordFrequency> outputList
			, Map<String, String> wordsForest, StringBuilder stringBuilder, StringBuilder[] prefixWord
			, POSController posUtils); int doSlangCheckForMap(int countInputStringLength, Map<String, WordFrequency> output, StringBuilder stringBuilder
			, Map<String, String> wordsForest, StringBuilder[] prefixWord, POSController posUtils);  }