Commit d3235bf6 authored by 郭羽's avatar 郭羽

美购精排模型

parent d09fd710
......@@ -29,7 +29,7 @@ def getDataVocabFromRedis(version):
key = "Strategy:rec:vocab:service:"+version
dataVocabStr = conn.get(key)
if dataVocabStr:
dataVocab = json.loads(dataVocabStr,encoding='utf-8')
dataVocab = json.loads(str(dataVocabStr, encoding="utf-8"),encoding='utf-8')
print("-----data_vocab-----")
for k, v in dataVocab.items():
print(k, len(v))
......
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