MCPcopy Create free account
hub / github.com/SooLab/CGFormer / _dict_from_json_file

Method _dict_from_json_file

bert/configuration_utils.py:323–326  ·  view source on GitHub ↗
(cls, json_file: str)

Source from the content-addressed store, hash-verified

321
322 @classmethod
323 def _dict_from_json_file(cls, json_file: str):
324 with open(json_file, "r", encoding="utf-8") as reader:
325 text = reader.read()
326 return json.loads(text)
327
328 def __eq__(self, other):
329 return self.__dict__ == other.__dict__

Callers 2

get_config_dictMethod · 0.80
from_json_fileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected