Commit 4ebc8099 authored by 李小芳's avatar 李小芳

Merge branch 'change' into 'master'

add

See merge request !85
parents fa453a17 5661d422
...@@ -58,7 +58,7 @@ def get_tips_suggest_list(instance_cn_name): ...@@ -58,7 +58,7 @@ def get_tips_suggest_list(instance_cn_name):
else: else:
suggest_dict[ch_name_term[0]]["input"].append(ch_name_term) suggest_dict[ch_name_term[0]]["input"].append(ch_name_term)
if suggest_item["word_weight"] > suggest_dict[ch_name_term[0]]["word_weight"]: if suggest_item["word_weight"] > suggest_dict[ch_name_term[0]]["word_weight"]:
suggest_dict[ch_name_term[0]]["word_weight"] = suggest_item["word_weight"] suggest_dict[ch_name_term[0]]["word_weight"] = 100 + int(suggest_item["word_weight"])
suggest_dict[ch_name_term[0]]["suggest_type"] = suggest_item["suggest_type"] suggest_dict[ch_name_term[0]]["suggest_type"] = suggest_item["suggest_type"]
# 拼音 # 拼音
if py_full_word != ch_full_word: if py_full_word != ch_full_word:
...@@ -82,7 +82,7 @@ def get_tips_suggest_list(instance_cn_name): ...@@ -82,7 +82,7 @@ def get_tips_suggest_list(instance_cn_name):
else: else:
suggest_dict[py_name_term[0]]["input"].append(py_name_term) suggest_dict[py_name_term[0]]["input"].append(py_name_term)
if suggest_item["word_weight"] > suggest_dict[py_name_term[0]]["word_weight"]: if suggest_item["word_weight"] > suggest_dict[py_name_term[0]]["word_weight"]:
suggest_dict[py_name_term[0]]["word_weight"] = suggest_item["word_weight"] suggest_dict[py_name_term[0]]["word_weight"] = 100 + int(suggest_item["word_weight"])
suggest_dict[py_name_term[0]]["suggest_type"] = suggest_item["suggest_type"] suggest_dict[py_name_term[0]]["suggest_type"] = suggest_item["suggest_type"]
# 简写 # 简写
...@@ -107,7 +107,7 @@ def get_tips_suggest_list(instance_cn_name): ...@@ -107,7 +107,7 @@ def get_tips_suggest_list(instance_cn_name):
else: else:
suggest_dict[py_acronym_term[0]]["input"].append(py_acronym_term) suggest_dict[py_acronym_term[0]]["input"].append(py_acronym_term)
if suggest_item["word_weight"] > suggest_dict[py_acronym_term[0]]["word_weight"]: if suggest_item["word_weight"] > suggest_dict[py_acronym_term[0]]["word_weight"]:
suggest_dict[py_acronym_term[0]]["word_weight"] = suggest_item["word_weight"] suggest_dict[py_acronym_term[0]]["word_weight"] = 100+ int(suggest_item["word_weight"])
suggest_dict[py_acronym_term[0]]["suggest_type"] = suggest_item["suggest_type"] suggest_dict[py_acronym_term[0]]["suggest_type"] = suggest_item["suggest_type"]
return suggest_dict.values() return suggest_dict.values()
......
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