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

Update khatt-paragraphs.py

Browse files
Files changed (1) hide show
  1. khatt-paragraphs.py +1 -1
khatt-paragraphs.py CHANGED
@@ -52,7 +52,7 @@ class KhattPara(datasets.GeneratorBasedBuilder):
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.basname(filepath)[:-4] + ".txt"
56
  text = self.read_arabic_text_file(os.path.join(text_archive_path,text_path))
57
 
58
  yield idx, {
 
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))
57
 
58
  yield idx, {