MCPcopy 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
71def write_dict(fn, dic):
72 with open(fn, 'w') as f:
73 json.dump(dic, f, indent=2)
74
75
76def f1_score(label_list, pred_list):

Callers 1

save_vocabMethod · 0.85

Calls 1

dumpMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…