Commit 91c45347 authored by 赵威's avatar 赵威

add business_tags

parent cdb95f79
......@@ -23,8 +23,8 @@ def match_tractate_by_device(device_id, n=10):
if device_id not in ["0", "unknown", "87654"]:
time_begin = time.time()
business_tags = get_user_portrait_tag3_from_redis(device_id, tags_num=3).get("business_tags", [])
# business_tags = ["假体下巴", "你好", "假体隆胸"]
res = []
if business_tags:
vectors = []
for tag in business_tags:
lst = json.loads(TAG_EMBEDDING_DICT.get(bytes(tag, "utf-8"), b"[]"))
......
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