Commit 637afba8 authored by 段英荣's avatar 段英荣

modify linUCB

parent 4efacf5a
......@@ -110,7 +110,7 @@ class TopicUtils(object):
topic_id_dict = dict()
for item in result_dict["hits"]:
topic_id_dict[item["_source"]["id"]] = item["_source"]["edit_tag_list"]
topic_id_dict[str(item["_source"]["id"])] = item["_source"]["edit_tag_list"]
return topic_id_dict
except:
......
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