Skip to content

Commit

Permalink
修正卷积拆分未知词汇 2019-05-25
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoguangluo committed May 25, 2019
1 parent 0201b9a commit 0f1a354
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
24 changes: 20 additions & 4 deletions wordSegment/org/tinos/engine/pos/imp/POSControllerImp.java
Original file line number Diff line number Diff line change
Expand Up @@ -778,8 +778,16 @@ public int chuLiMingCiOfThree(Map<String, String> wordsForest, List<String> outp
countInputStringLength= StableData.INT_TWO;
return countInputStringLength;
}
countInputStringLength= parserFirstCharOfThree(countInputStringLength, outputList, strings, fixWord);
return countInputStringLength;
outputList.add(strings[StableData.INT_ZERO]);
if(wordsForest.containsKey(strings[StableData.INT_TWO])) {
outputList.add(strings[StableData.INT_TWO]);
fixWord[StableData.INT_ZERO].delete(StableData.INT_ZERO, fixWord[StableData.INT_ZERO].length());
fixWord[StableData.INT_ZERO].append(strings[StableData.INT_TWO]);
return countInputStringLength;
}
fixWord[StableData.INT_ZERO].delete(StableData.INT_ZERO, fixWord[StableData.INT_ZERO].length());
fixWord[StableData.INT_ZERO].append(strings[StableData.INT_ZERO]);
return countInputStringLength= StableData.INT_ONE;
}

public int chuLiShiTaiCiOfThree(Map<String, String> wordsForest, List<String> outputList, int countInputLength,
Expand All @@ -803,8 +811,16 @@ public int chuLiShiTaiCiOfThree(Map<String, String> wordsForest, List<String> ou
countInputLength= StableData.INT_TWO;
return countInputLength;
}
countInputLength= parserFirstCharOfThree(countInputLength, outputList, strings, prefixWord);
return countInputLength;
outputList.add(strings[StableData.INT_ZERO]);
if(wordsForest.containsKey(strings[StableData.INT_TWO])) {
outputList.add(strings[StableData.INT_TWO]);
prefixWord[StableData.INT_ZERO].delete(StableData.INT_ZERO, prefixWord[StableData.INT_ZERO].length());
prefixWord[StableData.INT_ZERO].append(strings[StableData.INT_TWO]);
return countInputLength;
}
prefixWord[StableData.INT_ZERO].delete(StableData.INT_ZERO, prefixWord[StableData.INT_ZERO].length());
prefixWord[StableData.INT_ZERO].append(strings[StableData.INT_ZERO]);
return countInputLength= StableData.INT_ONE;
}

public int chuLiFuCiOfThree(Map<String, String> wordsForest, List<String> outputList, int countInputLength,
Expand Down
2 changes: 1 addition & 1 deletion wordSegment/org/tinos/ortho/fhmm/imp/poscj.lyg
Original file line number Diff line number Diff line change
Expand Up @@ -6594,7 +6594,7 @@ v/人名
利尿/名词
伽/名词
なら/形容词に値する
功三/名词
功亏一篑/名词
佃/名词
目指す/动词
しかし/*
Expand Down
8 changes: 4 additions & 4 deletions wordSegment/org/tinos/ortho/fhmm/imp/postt.lyg
Original file line number Diff line number Diff line change
Expand Up @@ -6594,7 +6594,7 @@ z/字母
利尿/名詞
伽/名詞
值得要/形容詞
功三/名詞
功亏一篑/名詞
佃/名詞
力爭/動詞
但/副詞
Expand Down Expand Up @@ -21162,7 +21162,7 @@ z/字母
戰略性/形容詞
威信掃地/名詞
改造/名詞
不幹乾/名詞
不幹净/形容詞
邀功/名詞
不平/副詞
像屍體/形容詞
Expand Down Expand Up @@ -21347,7 +21347,7 @@ z/字母
乘坐/動詞
龍卷風/名詞
籃球賽/名詞
來人/名詞
過來人/名詞
屈詞窮/人名
選拔/名詞
施舍/名詞
Expand Down Expand Up @@ -22625,7 +22625,7 @@ z/字母
身高/名詞
郊外/名詞
軸節/未知
人大/形容詞
人大代表/名詞
題材/名詞
不得了/副詞
改良主義/名詞
Expand Down

0 comments on commit 0f1a354

Please sign in to comment.