diff --git a/wordSegment/org/tinos/engine/pos/imp/POSControllerImp.java b/wordSegment/org/tinos/engine/pos/imp/POSControllerImp.java index fbe869c..48b8d21 100644 --- a/wordSegment/org/tinos/engine/pos/imp/POSControllerImp.java +++ b/wordSegment/org/tinos/engine/pos/imp/POSControllerImp.java @@ -656,8 +656,8 @@ public int parserFirstCharOfThreeForMap(int countInputStringLength, Map wordsForest, List outputList, int countInputStringLength, String[] strings, StringBuilder[] fixWord){ - if (StableMaps.xingWeiCi.containsKey(fixWord[StableData.INT_ZERO].toString()) - || StableMaps.mingCi.containsKey(fixWord[StableData.INT_ZERO].toString())){ + if (StableMaps.xingWeiCi.containsKey(fixWord[StableData.INT_ZERO].toString())|| StableMaps.mingCi + .containsKey(fixWord[StableData.INT_ZERO].toString())){ if(StableMaps.dongCi.containsKey(strings[StableData.INT_TWO])){ countInputStringLength= parserFirstCharOfThree(countInputStringLength, outputList, strings, fixWord); return countInputStringLength; @@ -771,7 +771,7 @@ public int chuLiMingCiOfThree(Map wordsForest, List outp countInputStringLength= parserFirstCharOfThree(countInputStringLength, outputList, strings, fixWord); return countInputStringLength; } - if (wordsForest.containsKey(strings[StableData.INT_ONE])){ + if (StableMaps.CiTwo.containsKey(strings[StableData.INT_ONE])){ outputList.add(strings[StableData.INT_ONE]); fixWord[StableData.INT_ZERO].delete(StableData.INT_ZERO, fixWord[StableData.INT_ZERO].length()); fixWord[StableData.INT_ZERO].append(strings[StableData.INT_ONE]);