a-alnaggar commited on
Commit
3fa033e
1 Parent(s): 8450f5e

Update khatt-paragraphs.py

Browse files
Files changed (1) hide show
  1. khatt-paragraphs.py +1 -0
khatt-paragraphs.py CHANGED
@@ -51,6 +51,7 @@ class KhattPara(datasets.GeneratorBasedBuilder):
51
 
52
  def _generate_examples(self, images, text_archive_path):
53
  """Returns inverted image and Arabic text."""
 
54
  for idx, (filepath, image) in enumerate(images):
55
  text_path = os.path.basename(filepath)[:-4] + ".txt"
56
  text = self.read_arabic_text_file(os.path.join(text_archive_path,text_path))
 
51
 
52
  def _generate_examples(self, images, text_archive_path):
53
  """Returns inverted image and Arabic text."""
54
+ print(os.listdir(text_archive_path))
55
  for idx, (filepath, image) in enumerate(images):
56
  text_path = os.path.basename(filepath)[:-4] + ".txt"
57
  text = self.read_arabic_text_file(os.path.join(text_archive_path,text_path))