class_docstr: LogiQA: A Challenge Dataset for Machine Reading Comprehension with Logical Reasoning
class_docstr_tok: ["LogiQA",":","A","Challenge","Dataset","for","Machine","Reading","Comprehension","with","Logical","Reasoning"]
code: def _generate_examples(self, filepath, split):
      def normalize(text):
          return text.replace(".", ". ").strip()
  
      with open(filepath, encoding="utf-8") as f:
          data = f.read().strip().split("\n\n")
          for key, row in enumerate(data):
              example = row.split("\n")
              yield key, {
                  "label": example[0].strip(),
                  "context": normalize(example[1]),
                  "question": normalize(example[2]),
                  "options": [
                      normalize(option[2:]) for option in example[3:]
                  ],
              }
  
imports: import datasets
label_desc: Use image node_id 3 for calling the Logiqa obj's underlying member method code with example usage: obj._generate_examples(filepath, split) and returns: text