Commit 89555e09 authored by 赵威's avatar 赵威

save tags

parent 6bacb3a6
......@@ -83,7 +83,7 @@ def save_tractate_vector_to_redis(all_keywords_set, all_tags_lst, model):
redis_key = "rims:tractate:sentense:vector:" + str(id)
if vec:
print(count, id, len(vec))
# redis_client5.set(redis_key, json.dumps(vec))
redis_client5.set(redis_key, json.dumps(vec))
# redis_client5.expire(redis_key, 60 * 60 * 24 * 3)
......@@ -126,4 +126,4 @@ if __name__ == "__main__":
print(all_tags_lst[:5])
save_tractate_vector_to_redis(all_keywords_set, all_tags_lst, model)
# save_tag_vector_to_redis(all_tags_lst, model)
save_tag_vector_to_redis(all_tags_lst, model)
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