class_docstr: @InProceedings{10.1007/978-3-030-32381-3_36,
  author="Duan, Xingyi and Wang, Baoxin and Wang, Ziyue and Ma, Wentao and Cui, Yiming and Wu, Dayong and Wang, Shijin and Liu, Ting and Huo, Tianxiang and Hu, Zhen and Wang, Heng and Liu, Zhiyuan",
  editor="Sun, Maosong and Huang, Xuanjing and Ji, Heng and Liu, Zhiyuan and Liu, Yang",
  title="CJRC: A Reliable Human-Annotated Benchmark DataSet for Chinese Judicial Reading Comprehension",
  booktitle="Chinese Computational Linguistics",
  year="2019",
  publisher="Springer International Publishing",
  address="Cham",
  pages="439--451",
  }
class_docstr_tok: ["@","InProceedings","{","10.1007\/978-3-030-32381-3_36",",","author=","''","Duan",",","Xingyi","and","Wang",",","Baoxin","and","Wang",",","Ziyue","and","Ma",",","Wentao","and","Cui",",","Yiming","and","Wu",",","Dayong","and","Wang",",","Shijin","and","Liu",",","Ting","and","Huo",",","Tianxiang","and","Hu",",","Zhen","and","Wang",",","Heng","and","Liu",",","Zhiyuan","''",",","editor=","''","Sun",",","Maosong","and","Huang",",","Xuanjing","and","Ji",",","Heng","and","Liu",",","Zhiyuan","and","Liu",",","Yang","''",",","title=","''","CJRC",":","A","Reliable","Human-Annotated","Benchmark","DataSet","for","Chinese","Judicial","Reading","Comprehension","''",",","booktitle=","''","Chinese","Computational","Linguistics","''",",","year=","''","2019","''",",","publisher=","''","Springer","International","Publishing","''",",","address=","''","Cham","''",",","pages=","''","439","--","451","''",",","}"]
code: def get_examples(self, data_dir, split):
      path = os.path.join(data_dir, f"{split}.json")
  
      with open(path, encoding="utf8") as f:
          jsons = json.load(f)
          for example_json in jsons["data"]:
              for paragraph in example_json["paragraphs"]:
                  for qa in paragraph["qas"]:
                      if qa["is_impossible"] == "true":
                          continue
                      example = InputExample(
                          meta={
                              "casename": paragraph["casename"],
                              "context": paragraph["context"],
                              "question": qa["question"],
                          },
                          tgt_text=qa["answers"][0]["text"],
                      )
                      examples.append(example)
  
imports: from .processor import *
label_desc: Use image node_id 2 for calling the CJRC obj's underlying member method code with example usage: obj.get_examples(data_dir, split) without return types