Commit 20e75e5e authored by 段英荣's avatar 段英荣

modify weight

parent 97093cba
......@@ -140,7 +140,7 @@ class TypeInfo(object):
suggest_dict["id"] = str(suggest_dict["id"]) + "_" + str(suggest_item["cur_index"])
suggest_dict["suggest"] = {
"input": suggest_item["input"],
"weight": suggest_dict["offline_score"]
"weight": int(suggest_dict["offline_score"])
}
data_list.append(suggest_dict)
except Exception:
......
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