Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/modelscope/modelscope
/ write_dict
Function
write_dict
modelscope/utils/nlp/space/utils.py:71–73 ·
view source on GitHub ↗
(fn, dic)
Source
from the content-addressed store, hash-verified
69
70
71
def
write_dict(fn, dic):
72
with
open(fn,
'w'
)
as
f:
73
json.dump(dic, f, indent=2)
74
75
76
def
f1_score(label_list, pred_list):
Callers
1
save_vocab
Method · 0.85
Calls
1
dump
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…