srl_bert_model / utils.py
yeomtong's picture
Upload 3 files
0c0db8b verified
raw
history blame contribute delete
217 Bytes
import pickle
def save_pkl(tgt_list, svg_path):
with open(svg_path, "wb") as f:
pickle.dump(tgt_list, f)
def load_pkl(path) :
with open(path, "rb") as f:
data = pickle.load(f)
return data