class_docstr: 参数定义
      
class_docstr_tok: ["\u53c2\u6570\u5b9a\u4e49"]
docstr: 保存配置到json文件
          
docstr_tok: ["\u4fdd\u5b58\u914d\u7f6e\u5230json\u6587\u4ef6"]
code: def save(self, json_path):
      """保存配置到json文件"""
      params = {}
      with open(json_path, "w") as f:
          for k, v in self.__dict__.items():
              if isinstance(v, (str, int, float, bool)):
                  params[k] = v
          json.dump(params, f, indent=4)
  
file_path: DeepKE/src/deepke/triple_extraction/PRGC/util.py
imports: import logging
  import os
  import shutil
  import json
  from pathlib import Path
  import torch
label_desc: Use image node_id 3 for calling the Params obj's underlying member method code with example usage: obj.save(json_path) without return types