@Test public void testDoSlangPartAndPOSCheckForTwoCharForMap() { fail("Not yet implemented"); }
public int doSlangPartAndPOSCheckForTwoCharForMap(int countInputStringLength, Map<String, WordFrequency> outputList , StringBuilder stringBuilder, Map<String, String> wordsForest, StringBuilder[] prefixWord , POSController posUtils){ String countWordNode= stringBuilder.toString(); if (!wordsForest.containsKey(countWordNode)){ WordForestUtil.wordsForestNotContainsKey(outputList, countWordNode, prefixWord); return --countInputStringLength; } if (prefixWord[StableData.INT_ZERO].length()== StableData.INT_ZERO){ WordForestUtil.prefixWordEqualZero(outputList, countWordNode, prefixWord); return countInputStringLength; } String[] strings= new String[StableData.INT_TWO]; strings[StableData.INT_ZERO]= String.valueOf(countWordNode.charAt(StableData.INT_ZERO)); strings[StableData.INT_ONE]= String.valueOf(countWordNode.charAt(StableData.INT_ZERO)) + String.valueOf(countWordNode.charAt(StableData.INT_ONE)); if (wordsForest.containsKey(strings[StableData.INT_ZERO])){ if (wordsForest.get(strings[StableData.INT_ZERO]).contains(StableData.NLP_CI_MING)){ countInputStringLength= posUtils.chuLiMingCiOfTwoForMap(wordsForest, outputList, countInputStringLength , strings, prefixWord); return countInputStringLength; } } if (wordsForest.containsKey(strings[StableData.INT_ONE])){ WordForestUtil.wordsForestContainsKey(outputList, countWordNode, prefixWord); return countInputStringLength; } return StableData.INT_ZERO; }
NLPControllerImp implements NLPController { public int doSlangPartAndPOSCheckForTwoCharForMap(int countInputStringLength, Map<String, WordFrequency> outputList , StringBuilder stringBuilder, Map<String, String> wordsForest, StringBuilder[] prefixWord , POSController posUtils){ String countWordNode= stringBuilder.toString(); if (!wordsForest.containsKey(countWordNode)){ WordForestUtil.wordsForestNotContainsKey(outputList, countWordNode, prefixWord); return --countInputStringLength; } if (prefixWord[StableData.INT_ZERO].length()== StableData.INT_ZERO){ WordForestUtil.prefixWordEqualZero(outputList, countWordNode, prefixWord); return countInputStringLength; } String[] strings= new String[StableData.INT_TWO]; strings[StableData.INT_ZERO]= String.valueOf(countWordNode.charAt(StableData.INT_ZERO)); strings[StableData.INT_ONE]= String.valueOf(countWordNode.charAt(StableData.INT_ZERO)) + String.valueOf(countWordNode.charAt(StableData.INT_ONE)); if (wordsForest.containsKey(strings[StableData.INT_ZERO])){ if (wordsForest.get(strings[StableData.INT_ZERO]).contains(StableData.NLP_CI_MING)){ countInputStringLength= posUtils.chuLiMingCiOfTwoForMap(wordsForest, outputList, countInputStringLength , strings, prefixWord); return countInputStringLength; } } if (wordsForest.containsKey(strings[StableData.INT_ONE])){ WordForestUtil.wordsForestContainsKey(outputList, countWordNode, prefixWord); return countInputStringLength; } return StableData.INT_ZERO; } }
NLPControllerImp implements NLPController { public int doSlangPartAndPOSCheckForTwoCharForMap(int countInputStringLength, Map<String, WordFrequency> outputList , StringBuilder stringBuilder, Map<String, String> wordsForest, StringBuilder[] prefixWord , POSController posUtils){ String countWordNode= stringBuilder.toString(); if (!wordsForest.containsKey(countWordNode)){ WordForestUtil.wordsForestNotContainsKey(outputList, countWordNode, prefixWord); return --countInputStringLength; } if (prefixWord[StableData.INT_ZERO].length()== StableData.INT_ZERO){ WordForestUtil.prefixWordEqualZero(outputList, countWordNode, prefixWord); return countInputStringLength; } String[] strings= new String[StableData.INT_TWO]; strings[StableData.INT_ZERO]= String.valueOf(countWordNode.charAt(StableData.INT_ZERO)); strings[StableData.INT_ONE]= String.valueOf(countWordNode.charAt(StableData.INT_ZERO)) + String.valueOf(countWordNode.charAt(StableData.INT_ONE)); if (wordsForest.containsKey(strings[StableData.INT_ZERO])){ if (wordsForest.get(strings[StableData.INT_ZERO]).contains(StableData.NLP_CI_MING)){ countInputStringLength= posUtils.chuLiMingCiOfTwoForMap(wordsForest, outputList, countInputStringLength , strings, prefixWord); return countInputStringLength; } } if (wordsForest.containsKey(strings[StableData.INT_ONE])){ WordForestUtil.wordsForestContainsKey(outputList, countWordNode, prefixWord); return countInputStringLength; } return StableData.INT_ZERO; }  }
NLPControllerImp implements NLPController { public int doSlangPartAndPOSCheckForTwoCharForMap(int countInputStringLength, Map<String, WordFrequency> outputList , StringBuilder stringBuilder, Map<String, String> wordsForest, StringBuilder[] prefixWord , POSController posUtils){ String countWordNode= stringBuilder.toString(); if (!wordsForest.containsKey(countWordNode)){ WordForestUtil.wordsForestNotContainsKey(outputList, countWordNode, prefixWord); return --countInputStringLength; } if (prefixWord[StableData.INT_ZERO].length()== StableData.INT_ZERO){ WordForestUtil.prefixWordEqualZero(outputList, countWordNode, prefixWord); return countInputStringLength; } String[] strings= new String[StableData.INT_TWO]; strings[StableData.INT_ZERO]= String.valueOf(countWordNode.charAt(StableData.INT_ZERO)); strings[StableData.INT_ONE]= String.valueOf(countWordNode.charAt(StableData.INT_ZERO)) + String.valueOf(countWordNode.charAt(StableData.INT_ONE)); if (wordsForest.containsKey(strings[StableData.INT_ZERO])){ if (wordsForest.get(strings[StableData.INT_ZERO]).contains(StableData.NLP_CI_MING)){ countInputStringLength= posUtils.chuLiMingCiOfTwoForMap(wordsForest, outputList, countInputStringLength , strings, prefixWord); return countInputStringLength; } } if (wordsForest.containsKey(strings[StableData.INT_ONE])){ WordForestUtil.wordsForestContainsKey(outputList, countWordNode, prefixWord); return countInputStringLength; } return StableData.INT_ZERO; }  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 doSlangPartAndPOSCheckForTwoCharForMap(int countInputStringLength, Map<String, WordFrequency> outputList , StringBuilder stringBuilder, Map<String, String> wordsForest, StringBuilder[] prefixWord , POSController posUtils){ String countWordNode= stringBuilder.toString(); if (!wordsForest.containsKey(countWordNode)){ WordForestUtil.wordsForestNotContainsKey(outputList, countWordNode, prefixWord); return --countInputStringLength; } if (prefixWord[StableData.INT_ZERO].length()== StableData.INT_ZERO){ WordForestUtil.prefixWordEqualZero(outputList, countWordNode, prefixWord); return countInputStringLength; } String[] strings= new String[StableData.INT_TWO]; strings[StableData.INT_ZERO]= String.valueOf(countWordNode.charAt(StableData.INT_ZERO)); strings[StableData.INT_ONE]= String.valueOf(countWordNode.charAt(StableData.INT_ZERO)) + String.valueOf(countWordNode.charAt(StableData.INT_ONE)); if (wordsForest.containsKey(strings[StableData.INT_ZERO])){ if (wordsForest.get(strings[StableData.INT_ZERO]).contains(StableData.NLP_CI_MING)){ countInputStringLength= posUtils.chuLiMingCiOfTwoForMap(wordsForest, outputList, countInputStringLength , strings, prefixWord); return countInputStringLength; } } if (wordsForest.containsKey(strings[StableData.INT_ONE])){ WordForestUtil.wordsForestContainsKey(outputList, countWordNode, prefixWord); return countInputStringLength; } return StableData.INT_ZERO; }  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);  }