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

modify

parent dc74b737
......@@ -126,10 +126,10 @@ class TypeInfo(object):
for suggest_item in suggest_list:
suggest_dict = copy.deepcopy(item_dict)
suggest_dict["suggest"] = {
"input": suggest_item["input"],
"suggest_type": suggest_item["suggest_type"],
"offline_score": suggest_item["word_weight"]
"input": suggest_item["input"]
}
suggest_dict["suggest_type"] = suggest_item["suggest_type"]
suggest_dict["offline_score"] = suggest_item["word_weight"]
data_list.append(suggest_dict)
except Exception:
traceback.print_exc()
......
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