|
|
@ -84,9 +84,7 @@ class ToneSandhi():
|
|
|
|
if j - 1 >= 0 and item == word[j - 1] and pos[0] in {"n", "v", "a"}:
|
|
|
|
if j - 1 >= 0 and item == word[j - 1] and pos[0] in {"n", "v", "a"}:
|
|
|
|
finals[j] = finals[j][:-1] + "5"
|
|
|
|
finals[j] = finals[j][:-1] + "5"
|
|
|
|
ge_idx = word.find("个")
|
|
|
|
ge_idx = word.find("个")
|
|
|
|
if (len(word) > 1 and word[-1] in "吧呢啊呐噻嘛吖嗨呐哦哒滴哩哟喽啰耶喔诶") or (
|
|
|
|
if len(word) >= 1 and word[-1] in "吧呢啊呐噻嘛吖嗨呐哦哒滴哩哟喽啰耶喔诶":
|
|
|
|
len(word) > 1 and word[-2] in '好是帅酷棒衰烂臭狗糗' and
|
|
|
|
|
|
|
|
word[-1] == '额') or (len(word) == 1 and word[-1] in "额嗯"):
|
|
|
|
|
|
|
|
finals[-1] = finals[-1][:-1] + "5"
|
|
|
|
finals[-1] = finals[-1][:-1] + "5"
|
|
|
|
elif len(word) >= 1 and word[-1] in "的地得":
|
|
|
|
elif len(word) >= 1 and word[-1] in "的地得":
|
|
|
|
finals[-1] = finals[-1][:-1] + "5"
|
|
|
|
finals[-1] = finals[-1][:-1] + "5"
|
|
|
|