Commit 328dd6a1 authored by 赵威's avatar 赵威

add printer

parent 156e60fb
...@@ -36,6 +36,7 @@ def user_portrait_scan_info(device_dict, diary_dict, predict_fn): ...@@ -36,6 +36,7 @@ def user_portrait_scan_info(device_dict, diary_dict, predict_fn):
def offline_predict(device_id, device_dict, diary_dict, predict_fn): def offline_predict(device_id, device_dict, diary_dict, predict_fn):
print(device_id)
diary_ids = user_portrait_tag3_get_candidate_unread_list(device_id, "diary") diary_ids = user_portrait_tag3_get_candidate_unread_list(device_id, "diary")
print("diary_ids: " + str(len(diary_ids))) print("diary_ids: " + str(len(diary_ids)))
# print(diary_ids[:10]) # print(diary_ids[:10])
...@@ -59,6 +60,7 @@ def main(): ...@@ -59,6 +60,7 @@ def main():
user_portrait_scan_info(device_dict, diary_dict, predict_fn) user_portrait_scan_info(device_dict, diary_dict, predict_fn)
if __name__ == "__main__": if __name__ == "__main__":
time_begin = time.time() time_begin = time.time()
......
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