Commit 4241dc50 authored by 赵威's avatar 赵威

update data path

parent 671df37a
...@@ -4,7 +4,7 @@ import pandas as pd ...@@ -4,7 +4,7 @@ import pandas as pd
base_dir = os.getcwd() base_dir = os.getcwd()
DATA_PATH = os.path.join(base_dir, "_data") DATA_PATH = os.path.join(base_dir, "_data")
MODEL_PATH = os.path.join(base_dir, "_model") MODEL_PATH = os.path.join(base_dir, "_models")
def remove_file(path): def remove_file(path):
......
...@@ -163,6 +163,7 @@ if __name__ == "__main__": ...@@ -163,6 +163,7 @@ if __name__ == "__main__":
for (k, v) in res_dict.items(): for (k, v) in res_dict.items():
if v: if v:
f.write("{}|{}\n".format(k, ",".join([str(x) for x in v]))) f.write("{}|{}\n".format(k, ",".join([str(x) for x in v])))
print("write data done.")
save_clicked_tractate_ids_item2vec() save_clicked_tractate_ids_item2vec()
......
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