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

modify weight

parent f0b9716a
......@@ -21,16 +21,16 @@ def uuid4():
def get_tips_suggest_list(instance_cn_name):
try:
ch_full_weight = 6.0
py_full_weight = 3.0
py_acronym_full_weight = 3.0
ch_full_weight = 6.0 * 10000
py_full_weight = 3.0 * 10000
py_acronym_full_weight = 3.0 * 10000
py_acronym_prefix_weight = 2
ch_prefix_weight = 1.5
py_prefix_weight = 1.0
# 命中开始部分加权
begin_prefix_weight = 1.2
begin_prefix_weight = 1.2 * 10000
ch_full_word = instance_cn_name
py_full_word = ''.join(lazy_pinyin(ch_full_word))
......
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