import os # ORIGINAL_DATA_BASE = "/home/ming/malware/data/elfasm_inst_pairs" ORIGINAL_DATA_BASE = "/mnt/d/bishe/Inst2Vec/dataset/all" CURRENT_DATA_BASE = "/mnt/d/bishe/Inst2Vec/dataset/all" def read_file(filename): with open(filename, "r", encoding="utf-8") as fin: return fin.readlines() def write_file(sents, filename): with open(filename, "w", encoding="utf-8") as fout: for sent in sents: fout.write(sent)