code: def __init__(
      self,
      language="zh",
      NAN="NAN",
      prefix="",
      template_path="configs/re_template.json",
  ):
      self.language = language
      self.NAN = NAN
      self.prefix = prefix
  
      template = json.load(open(template_path, "r"))
      self.relation_template = template[language]["template"]
      self.relation_open_template = template[language]["open_template"]
  
      self.relation_int_out_format_zh = {
          0: ["(头实体,关系,尾实体)\n", self.relation_convert_target0],
          1: ["头实体是,关系是,尾实体是\n", self.relation_convert_target1],
          2: ["关系：头实体,尾实体\n", self.relation_convert_target2],
          3: [
              "{'head':'', 'relation':'', 'tail':''}\n",
              self.relation_convert_target3,
          ],
      }
      self.relation_int_out_format_en = {
          0: [
              "(Subject,Relation,Object)\n",
              self.relation_convert_target0,
          ],
          1: [
              "Subject is,Relation is,Object is\n",
              self.relation_convert_target1_en,
          ],
          2: [
              "Relation：Subject,Object\n",
              self.relation_convert_target2,
          ],
          3: [
              "{'head':'', 'relation':'', 'tail':''}\n",
              self.relation_convert_target3,
          ],
      }
      if language == "zh":
          self.relation_int_out_format = self.relation_int_out_format_zh
      else:
          self.relation_int_out_format = self.relation_int_out_format_en
  
file_path: DeepKE/example/llm/InstructKGC/kg2instruction/convert/converter/re_converter.py
imports: import json
label_desc: Use image node_id 1 to create a new REConverter object  with example: obj = REConverter(language, NAN, prefix, template_path)