针对tap 的tags 数据基于order进行评分

This commit is contained in:
pengtao 2019-12-05 14:31:01 +08:00
parent f728c7d060
commit 8106a06250

View File

@ -38,6 +38,8 @@ class TapTapReport:
for line in data:
try:
catename, tags, order = line
if catename not in tags_data.keys():
tags_data[catename] = {}
temp_dict = tags_data.get(catename, {})
for tag in tags.split(","):
temp_dict[tag] = temp_dict.get(tag, 0) + self.order2score(order)