class_docstr: `Re-TACRED <https://github.com/gstoica27/Re-TACRED>`_ is a variant of the TACRED dataset
  
  It was proposed by the paper `Re-TACRED: Addressing Shortcomings of the TACRED Dataset (Stoica et al. 2021) <https://arxiv.org/pdf/2104.08398.pdf>`_
  
  This processor inherit :py:class:`TACREDProcessor` and can be used similarly
  
  Examples:
  
  ..  code-block:: python
  
      from openprompt.data_utils.relation_classification_dataset import PROCESSORS
  
      base_path = "datasets/RelationClassification"
  
      dataset_name = "ReTACRED"
      dataset_path = os.path.join(base_path, dataset_name)
      processor = PROCESSORS[dataset_name.lower()]()
      train_dataset = processor.get_train_examples(dataset_path)
      dev_dataset = processor.get_dev_examples(dataset_path)
      test_dataset = processor.get_test_examples(dataset_path)
      assert processor.get_num_labels() == 40
      assert processor.get_labels() == ["no_relation", "org:members", "per:siblings", "per:spouse", "org:country_of_branch", "per:country_of_death", "per:parents", "per:stateorprovinces_of_residence", "org:top_members/employees", "org:dissolved", "org:number_of_employees/members", "per:stateorprovince_of_death", "per:origin", "per:children", "org:political/religious_affiliation", "per:city_of_birth", "per:title", "org:shareholders", "per:employee_of", "org:member_of", "org:founded_by", "per:countries_of_residence", "per:other_family", "per:religion", "per:identity", "per:date_of_birth", "org:city_of_branch", "org:alternate_names", "org:website", "per:cause_of_death", "org:stateorprovince_of_branch", "per:schools_attended", "per:country_of_birth", "per:date_of_death", "per:city_of_death", "org:founded", "per:cities_of_residence", "per:age", "per:charges", "per:stateorprovince_of_birth"]
      assert len(train_dataset) == 58465
      assert len(dev_dataset) == 19584
      assert len(test_dataset) == 13418
code: def __init__(self):
      super().__init__()
      self.labels = [
          "no_relation",
          "org:members",
          "per:siblings",
          "per:spouse",
          "org:country_of_branch",
          "per:country_of_death",
          "per:parents",
          "per:stateorprovinces_of_residence",
          "org:top_members/employees",
          "org:dissolved",
          "org:number_of_employees/members",
          "per:stateorprovince_of_death",
          "per:origin",
          "per:children",
          "org:political/religious_affiliation",
          "per:city_of_birth",
          "per:title",
          "org:shareholders",
          "per:employee_of",
          "org:member_of",
          "org:founded_by",
          "per:countries_of_residence",
          "per:other_family",
          "per:religion",
          "per:identity",
          "per:date_of_birth",
          "org:city_of_branch",
          "org:alternate_names",
          "org:website",
          "per:cause_of_death",
          "org:stateorprovince_of_branch",
          "per:schools_attended",
          "per:country_of_birth",
          "per:date_of_death",
          "per:city_of_death",
          "org:founded",
          "per:cities_of_residence",
          "per:age",
          "per:charges",
          "per:stateorprovince_of_birth",
      ]
  
imports: import os
  import json, csv
  from abc import ABC, abstractmethod
  from collections import defaultdict, Counter
  from typing import *
  from openprompt.utils.logging import logger
  from openprompt.data_utils.utils import InputExample
  from openprompt.data_utils.data_processor import DataProcessor
label_desc: Use image node_id 1 to create a new ReTACREDProcessor object from inherited base classes: TACREDProcessor with example: obj = ReTACREDProcessor()