Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
yeomtong
/
srl_bert_model
like
0
English
semantic-role-labeling
srl
Model card
Files
Files and versions
xet
Community
1
Copy to bucket
new
refs/pr/1
srl_bert_model
/
utils.py
yeomtong
Upload 3 files
0c0db8b
verified
7 months ago
raw
Copy download link
history
blame
Safe
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