From 1fe57ba51f2eebab0f5e37c7db73db76ebde9a35 Mon Sep 17 00:00:00 2001 From: yaoguangluo Date: Mon, 27 May 2019 00:50:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=80=E4=BA=9B=E5=B0=8F?= =?UTF-8?q?=E4=BC=98=E5=8C=96.=20=E4=BD=9C=E8=80=85=E4=B9=8B=E5=90=8E?= =?UTF-8?q?=E4=BC=9A=E5=81=9A=20=E5=BE=B7=E5=A1=94=E5=95=86=E4=B8=9A?= =?UTF-8?q?=E7=89=88=E4=BC=98=E5=8C=96=20=E4=BA=A7=E5=93=81.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wordSegment/org/tinos/engine/pos/imp/POSControllerImp.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]);