Skip to content

Commit

Permalink
更新一些小优化. 作者之后会做 德塔商业版优化 产品.
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoguangluo committed May 26, 2019
1 parent 26635cd commit 1fe57ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wordSegment/org/tinos/engine/pos/imp/POSControllerImp.java
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,8 @@ public int parserFirstCharOfThreeForMap(int countInputStringLength, Map<String,

public int chuLiMingCiOfThree(Map<String, String> wordsForest, List<String> 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;
Expand Down Expand Up @@ -771,7 +771,7 @@ public int chuLiMingCiOfThree(Map<String, String> wordsForest, List<String> 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]);
Expand Down

0 comments on commit 1fe57ba

Please sign in to comment.