@Test public void testDoSlangPartAndPOSCheckForTwoChar() { fail("Not yet implemented"); }
public int doSlangPartAndPOSCheckForTwoChar(int countInputStringLength, List<String> outputList , StringBuilder stringBuilder, Map<String, String> wordsForest, StringBuilder[] prefixWord , POSController posUtils, int charPosition, String textInputString){ String countWordNode= stringBuilder.toString(); if (StableData.INT_ZERO== prefixWord[StableData.INT_ZERO].length()){ if(StableMaps.CiTwo.containsKey(countWordNode)) { prefixWord[StableData.INT_ZERO].delete(StableData.INT_ZERO, prefixWord[StableData.INT_ZERO].length()); prefixWord[StableData.INT_ZERO].append(countWordNode); outputList.add(countWordNode); return countInputStringLength; } prefixWord[StableData.INT_ZERO].delete(StableData.INT_ZERO, prefixWord[StableData.INT_ZERO].length()); prefixWord[StableData.INT_ZERO].append(stringBuilder.charAt(StableData.INT_ZERO)); outputList.add(StableData.EMPTY_STRING+ stringBuilder.charAt(StableData.INT_ZERO)); return countInputStringLength- StableData.INT_ONE; } String[] strings= new String[StableData.INT_TWO]; strings[StableData.INT_ZERO]= String.valueOf(countWordNode.charAt(StableData.INT_ZERO)); strings[StableData.INT_ONE]= countWordNode; if (StableMaps.mingCi.containsKey(strings[StableData.INT_ZERO])){ countInputStringLength= posUtils.chuLiMingCiOfTwo(wordsForest, outputList, countInputStringLength , strings, prefixWord, charPosition, textInputString); return countInputStringLength; } if (StableMaps.baDongCi.containsKey(strings[StableData.INT_ZERO])){ countInputStringLength = posUtils.chuLiBaDongCiOfTwo(wordsForest, outputList, countInputStringLength , strings, prefixWord); return countInputStringLength; } if (StableMaps.jieCi.containsKey(strings[StableData.INT_ZERO].toString())){ if (StableMaps.dongCi.containsKey(prefixWord[StableData.INT_ZERO].toString())){ if (!StableMaps.jieCi.containsKey(countWordNode)){ countInputStringLength= posUtils.parserFirstCharOfTwo(countInputStringLength, outputList, strings, prefixWord); return countInputStringLength; } } } if (StableMaps.CiTwo.containsKey(countWordNode)){ prefixWord[StableData.INT_ZERO].delete(StableData.INT_ZERO, prefixWord[StableData.INT_ZERO].length()); prefixWord[StableData.INT_ZERO].append(countWordNode); outputList.add(countWordNode); return countInputStringLength; } countInputStringLength= posUtils.parserFirstCharOfTwo(countInputStringLength, outputList, strings, prefixWord); return countInputStringLength; }
NLPControllerImp implements NLPController { public int doSlangPartAndPOSCheckForTwoChar(int countInputStringLength, List<String> outputList , StringBuilder stringBuilder, Map<String, String> wordsForest, StringBuilder[] prefixWord , POSController posUtils, int charPosition, String textInputString){ String countWordNode= stringBuilder.toString(); if (StableData.INT_ZERO== prefixWord[StableData.INT_ZERO].length()){ if(StableMaps.CiTwo.containsKey(countWordNode)) { prefixWord[StableData.INT_ZERO].delete(StableData.INT_ZERO, prefixWord[StableData.INT_ZERO].length()); prefixWord[StableData.INT_ZERO].append(countWordNode); outputList.add(countWordNode); return countInputStringLength; } prefixWord[StableData.INT_ZERO].delete(StableData.INT_ZERO, prefixWord[StableData.INT_ZERO].length()); prefixWord[StableData.INT_ZERO].append(stringBuilder.charAt(StableData.INT_ZERO)); outputList.add(StableData.EMPTY_STRING+ stringBuilder.charAt(StableData.INT_ZERO)); return countInputStringLength- StableData.INT_ONE; } String[] strings= new String[StableData.INT_TWO]; strings[StableData.INT_ZERO]= String.valueOf(countWordNode.charAt(StableData.INT_ZERO)); strings[StableData.INT_ONE]= countWordNode; if (StableMaps.mingCi.containsKey(strings[StableData.INT_ZERO])){ countInputStringLength= posUtils.chuLiMingCiOfTwo(wordsForest, outputList, countInputStringLength , strings, prefixWord, charPosition, textInputString); return countInputStringLength; } if (StableMaps.baDongCi.containsKey(strings[StableData.INT_ZERO])){ countInputStringLength = posUtils.chuLiBaDongCiOfTwo(wordsForest, outputList, countInputStringLength , strings, prefixWord); return countInputStringLength; } if (StableMaps.jieCi.containsKey(strings[StableData.INT_ZERO].toString())){ if (StableMaps.dongCi.containsKey(prefixWord[StableData.INT_ZERO].toString())){ if (!StableMaps.jieCi.containsKey(countWordNode)){ countInputStringLength= posUtils.parserFirstCharOfTwo(countInputStringLength, outputList, strings, prefixWord); return countInputStringLength; } } } if (StableMaps.CiTwo.containsKey(countWordNode)){ prefixWord[StableData.INT_ZERO].delete(StableData.INT_ZERO, prefixWord[StableData.INT_ZERO].length()); prefixWord[StableData.INT_ZERO].append(countWordNode); outputList.add(countWordNode); return countInputStringLength; } countInputStringLength= posUtils.parserFirstCharOfTwo(countInputStringLength, outputList, strings, prefixWord); return countInputStringLength; } }
NLPControllerImp implements NLPController { public int doSlangPartAndPOSCheckForTwoChar(int countInputStringLength, List<String> outputList , StringBuilder stringBuilder, Map<String, String> wordsForest, StringBuilder[] prefixWord , POSController posUtils, int charPosition, String textInputString){ String countWordNode= stringBuilder.toString(); if (StableData.INT_ZERO== prefixWord[StableData.INT_ZERO].length()){ if(StableMaps.CiTwo.containsKey(countWordNode)) { prefixWord[StableData.INT_ZERO].delete(StableData.INT_ZERO, prefixWord[StableData.INT_ZERO].length()); prefixWord[StableData.INT_ZERO].append(countWordNode); outputList.add(countWordNode); return countInputStringLength; } prefixWord[StableData.INT_ZERO].delete(StableData.INT_ZERO, prefixWord[StableData.INT_ZERO].length()); prefixWord[StableData.INT_ZERO].append(stringBuilder.charAt(StableData.INT_ZERO)); outputList.add(StableData.EMPTY_STRING+ stringBuilder.charAt(StableData.INT_ZERO)); return countInputStringLength- StableData.INT_ONE; } String[] strings= new String[StableData.INT_TWO]; strings[StableData.INT_ZERO]= String.valueOf(countWordNode.charAt(StableData.INT_ZERO)); strings[StableData.INT_ONE]= countWordNode; if (StableMaps.mingCi.containsKey(strings[StableData.INT_ZERO])){ countInputStringLength= posUtils.chuLiMingCiOfTwo(wordsForest, outputList, countInputStringLength , strings, prefixWord, charPosition, textInputString); return countInputStringLength; } if (StableMaps.baDongCi.containsKey(strings[StableData.INT_ZERO])){ countInputStringLength = posUtils.chuLiBaDongCiOfTwo(wordsForest, outputList, countInputStringLength , strings, prefixWord); return countInputStringLength; } if (StableMaps.jieCi.containsKey(strings[StableData.INT_ZERO].toString())){ if (StableMaps.dongCi.containsKey(prefixWord[StableData.INT_ZERO].toString())){ if (!StableMaps.jieCi.containsKey(countWordNode)){ countInputStringLength= posUtils.parserFirstCharOfTwo(countInputStringLength, outputList, strings, prefixWord); return countInputStringLength; } } } if (StableMaps.CiTwo.containsKey(countWordNode)){ prefixWord[StableData.INT_ZERO].delete(StableData.INT_ZERO, prefixWord[StableData.INT_ZERO].length()); prefixWord[StableData.INT_ZERO].append(countWordNode); outputList.add(countWordNode); return countInputStringLength; } countInputStringLength= posUtils.parserFirstCharOfTwo(countInputStringLength, outputList, strings, prefixWord); return countInputStringLength; }  }
NLPControllerImp implements NLPController { public int doSlangPartAndPOSCheckForTwoChar(int countInputStringLength, List<String> outputList , StringBuilder stringBuilder, Map<String, String> wordsForest, StringBuilder[] prefixWord , POSController posUtils, int charPosition, String textInputString){ String countWordNode= stringBuilder.toString(); if (StableData.INT_ZERO== prefixWord[StableData.INT_ZERO].length()){ if(StableMaps.CiTwo.containsKey(countWordNode)) { prefixWord[StableData.INT_ZERO].delete(StableData.INT_ZERO, prefixWord[StableData.INT_ZERO].length()); prefixWord[StableData.INT_ZERO].append(countWordNode); outputList.add(countWordNode); return countInputStringLength; } prefixWord[StableData.INT_ZERO].delete(StableData.INT_ZERO, prefixWord[StableData.INT_ZERO].length()); prefixWord[StableData.INT_ZERO].append(stringBuilder.charAt(StableData.INT_ZERO)); outputList.add(StableData.EMPTY_STRING+ stringBuilder.charAt(StableData.INT_ZERO)); return countInputStringLength- StableData.INT_ONE; } String[] strings= new String[StableData.INT_TWO]; strings[StableData.INT_ZERO]= String.valueOf(countWordNode.charAt(StableData.INT_ZERO)); strings[StableData.INT_ONE]= countWordNode; if (StableMaps.mingCi.containsKey(strings[StableData.INT_ZERO])){ countInputStringLength= posUtils.chuLiMingCiOfTwo(wordsForest, outputList, countInputStringLength , strings, prefixWord, charPosition, textInputString); return countInputStringLength; } if (StableMaps.baDongCi.containsKey(strings[StableData.INT_ZERO])){ countInputStringLength = posUtils.chuLiBaDongCiOfTwo(wordsForest, outputList, countInputStringLength , strings, prefixWord); return countInputStringLength; } if (StableMaps.jieCi.containsKey(strings[StableData.INT_ZERO].toString())){ if (StableMaps.dongCi.containsKey(prefixWord[StableData.INT_ZERO].toString())){ if (!StableMaps.jieCi.containsKey(countWordNode)){ countInputStringLength= posUtils.parserFirstCharOfTwo(countInputStringLength, outputList, strings, prefixWord); return countInputStringLength; } } } if (StableMaps.CiTwo.containsKey(countWordNode)){ prefixWord[StableData.INT_ZERO].delete(StableData.INT_ZERO, prefixWord[StableData.INT_ZERO].length()); prefixWord[StableData.INT_ZERO].append(countWordNode); outputList.add(countWordNode); return countInputStringLength; } countInputStringLength= posUtils.parserFirstCharOfTwo(countInputStringLength, outputList, strings, prefixWord); return countInputStringLength; }  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 doSlangPartAndPOSCheckForTwoChar(int countInputStringLength, List<String> outputList , StringBuilder stringBuilder, Map<String, String> wordsForest, StringBuilder[] prefixWord , POSController posUtils, int charPosition, String textInputString){ String countWordNode= stringBuilder.toString(); if (StableData.INT_ZERO== prefixWord[StableData.INT_ZERO].length()){ if(StableMaps.CiTwo.containsKey(countWordNode)) { prefixWord[StableData.INT_ZERO].delete(StableData.INT_ZERO, prefixWord[StableData.INT_ZERO].length()); prefixWord[StableData.INT_ZERO].append(countWordNode); outputList.add(countWordNode); return countInputStringLength; } prefixWord[StableData.INT_ZERO].delete(StableData.INT_ZERO, prefixWord[StableData.INT_ZERO].length()); prefixWord[StableData.INT_ZERO].append(stringBuilder.charAt(StableData.INT_ZERO)); outputList.add(StableData.EMPTY_STRING+ stringBuilder.charAt(StableData.INT_ZERO)); return countInputStringLength- StableData.INT_ONE; } String[] strings= new String[StableData.INT_TWO]; strings[StableData.INT_ZERO]= String.valueOf(countWordNode.charAt(StableData.INT_ZERO)); strings[StableData.INT_ONE]= countWordNode; if (StableMaps.mingCi.containsKey(strings[StableData.INT_ZERO])){ countInputStringLength= posUtils.chuLiMingCiOfTwo(wordsForest, outputList, countInputStringLength , strings, prefixWord, charPosition, textInputString); return countInputStringLength; } if (StableMaps.baDongCi.containsKey(strings[StableData.INT_ZERO])){ countInputStringLength = posUtils.chuLiBaDongCiOfTwo(wordsForest, outputList, countInputStringLength , strings, prefixWord); return countInputStringLength; } if (StableMaps.jieCi.containsKey(strings[StableData.INT_ZERO].toString())){ if (StableMaps.dongCi.containsKey(prefixWord[StableData.INT_ZERO].toString())){ if (!StableMaps.jieCi.containsKey(countWordNode)){ countInputStringLength= posUtils.parserFirstCharOfTwo(countInputStringLength, outputList, strings, prefixWord); return countInputStringLength; } } } if (StableMaps.CiTwo.containsKey(countWordNode)){ prefixWord[StableData.INT_ZERO].delete(StableData.INT_ZERO, prefixWord[StableData.INT_ZERO].length()); prefixWord[StableData.INT_ZERO].append(countWordNode); outputList.add(countWordNode); return countInputStringLength; } countInputStringLength= posUtils.parserFirstCharOfTwo(countInputStringLength, outputList, strings, prefixWord); return countInputStringLength; }  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);  }