def from_json_file(cls, json_file, **kwargs):
        """Constructs a `BertConfig` from a json file of parameters."""
        with open(json_file, "r", encoding='utf-8') as reader:
            text = reader.read()
        json_info = json.loads(text)
        for k, v in kwargs.items():
            json_info[k] = v
        return cls.from_dict(json_info)
Constructs a `BertConfig` from a json file of parameters.
layoutreader/s2s_ft/modeling_decoding.py