Download utils.py from yeomtong/srl_bert_model: direct link, hf CLI and curl.
- Browser
- Download file 217 Bytes
-
https://huggingface.co/yeomtong/srl_bert_model/resolve/refs%2Fpr%2F1/utils.py
- Command line
-
hf download hf://yeomtong/srl_bert_model@refs/pr/1/utils.py
-
curl -L -o utils.py https://huggingface.co/yeomtong/srl_bert_model/resolve/refs%2Fpr%2F1/utils.py
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 |