Commit c3d4a0be authored by 段英荣's avatar 段英荣

modify

parent fd67556d
......@@ -41,7 +41,7 @@ def get_tips_suggest_list(instance_cn_name):
# 中文
for i in range(len(ch_full_word)):
#for j in range(i, len(ch_full_word) + 1):
ch_name_term = ch_full_word[i].strip()
ch_name_term = ch_full_word[i:].strip()
if ch_name_term:
prefix_weight = ch_prefix_weight if len(ch_name_term) != len(ch_full_word) else ch_full_weight
suggest_type = 0 if len(ch_name_term) != len(ch_full_word) else 1
......@@ -58,7 +58,7 @@ def get_tips_suggest_list(instance_cn_name):
# 拼音
for i in range(len(py_full_word)):
#for j in range(i, len(py_full_word) + 1):
py_name_term = py_full_word[i].strip()
py_name_term = py_full_word[i:].strip()
if py_name_term:
prefix_weight = py_prefix_weight if len(py_name_term) != len(
py_full_word) else py_full_weight
......@@ -76,7 +76,7 @@ def get_tips_suggest_list(instance_cn_name):
# 简写
for i in range(len(py_acronym_full_word)):
#for j in range(i, len(py_acronym_full_word) + 1):
py_acronym_term = py_acronym_full_word[i].strip()
py_acronym_term = py_acronym_full_word[i:].strip()
if py_acronym_term:
prefix_weight = py_acronym_prefix_weight if len(py_acronym_term) != len(
py_acronym_full_word) else py_acronym_full_weight
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment