darentang commited on
Commit
3b39c48
1 Parent(s): e826864
Files changed (1) hide show
  1. sroie.py +1 -1
sroie.py CHANGED
@@ -94,7 +94,7 @@ class Sroie(datasets.GeneratorBasedBuilder):
94
  def _generate_examples(self, filepath):
95
  logger.info("⏳ Generating examples from = %s", filepath)
96
  ann_dir = os.path.join(filepath, "tagged")
97
- img_dir = os.path.join(filepath, "image")
98
  for guid, fname in enumerate(sorted(os.listdir(img_dir))):
99
  name, ext = os.path.splitext(fname)
100
  file_path = os.path.join(ann_dir, name + ".json")
 
94
  def _generate_examples(self, filepath):
95
  logger.info("⏳ Generating examples from = %s", filepath)
96
  ann_dir = os.path.join(filepath, "tagged")
97
+ img_dir = os.path.join(filepath, "images")
98
  for guid, fname in enumerate(sorted(os.listdir(img_dir))):
99
  name, ext = os.path.splitext(fname)
100
  file_path = os.path.join(ann_dir, name + ".json")