Kamtera commited on
Commit
fbab1c4
1 Parent(s): 4b1e440

Upload ParsiGoo.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. ParsiGoo.py +5 -2
ParsiGoo.py CHANGED
@@ -1,6 +1,6 @@
1
  import os
2
  import datasets
3
-
4
  class ParsiGoo(datasets.GeneratorBasedBuilder):
5
  VERSION = datasets.Version("1.0.0")
6
 
@@ -21,7 +21,10 @@ class ParsiGoo(datasets.GeneratorBasedBuilder):
21
  )
22
 
23
  def _split_generators(self, dl_manager):
24
- data_dir = dl_manager.extract(os.path.join(dl_manager.manual_dir, "datasets"))
 
 
 
25
  splits = []
26
  for speaker_name in os.listdir(data_dir):
27
  if not os.path.isdir(os.path.join(data_dir, speaker_name)):
 
1
  import os
2
  import datasets
3
+ logger = datasets.logging.get_logger(__name__)
4
  class ParsiGoo(datasets.GeneratorBasedBuilder):
5
  VERSION = datasets.Version("1.0.0")
6
 
 
21
  )
22
 
23
  def _split_generators(self, dl_manager):
24
+ logger.info("| > ")
25
+ logger.info(dl_manager.manual_dir)
26
+ # logger.info(os.path.join(os.path.dirname(os.path.abspath(__file__)), "datasets"))
27
+ data_dir = dl_manager.download("datasets")
28
  splits = []
29
  for speaker_name in os.listdir(data_dir):
30
  if not os.path.isdir(os.path.join(data_dir, speaker_name)):