class_docstr: Desc:
      a single set of features of data
class_docstr_tok: ["Desc",":","a","single","set","of","features","of","data"]
code: def __init__(
      self,
      input_tokens,
      input_ids,
      attention_mask,
      seq_tag=None,
      corres_tag=None,
      relation=None,
      triples=None,
      rel_tag=None,
  ):
      self.input_tokens = input_tokens
      self.input_ids = input_ids
      self.attention_mask = attention_mask
      self.seq_tag = seq_tag
      self.corres_tag = corres_tag
      self.relation = relation
      self.triples = triples
      self.rel_tag = rel_tag
  
file_path: DeepKE/src/deepke/triple_extraction/PRGC/dataloader_utils.py
imports: import json
  import random
  from multiprocessing import Pool
  import functools
  import numpy
  from collections import defaultdict
  from itertools import chain
  import os
  from .util import Label2IdxSub, Label2IdxObj
label_desc: Use image node_id 1 to create a new InputFeatures object from inherited base classes: object with example: obj = InputFeatures(input_tokens, input_ids, attention_mask, seq_tag, corres_tag, relation, triples, rel_tag)