summaryrefslogtreecommitdiffstats
path: root/scripts/specialtable.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/specialtable.py')
-rw-r--r--scripts/specialtable.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/specialtable.py b/scripts/specialtable.py
index a71aed7..9f03904 100644
--- a/scripts/specialtable.py
+++ b/scripts/specialtable.py
@@ -50,6 +50,8 @@ def load_phrase(filename):
second_key = second_key[:-1]
phrase_dict[(first_key, second_key)] = freq
else:
+ if pinyin_str[-1].isdigit():
+ pinyin_str = pinyin_str[:-1]
phrase_dict[pinyin_str] = freq
phrasefile.close()