提交 927c9bbd 编写于 作者: J JiehangXie

Fix a bug when sentence inputed contain English words

上级 02729a58
......@@ -105,6 +105,8 @@ class Frontend():
phones_list = []
for seg in segments:
phones = []
# Replace all English words in the sentence
seg = re.sub('[a-zA-Z]+','',seg)
seg_cut = psg.lcut(seg)
initials = []
finals = []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册