PerSets commited on
Commit
266bec6
·
1 Parent(s): 5dc4acb

fix: new approach

Browse files
__pycache__/asr_dataset.cpython-312.pyc CHANGED
Binary files a/__pycache__/asr_dataset.cpython-312.pyc and b/__pycache__/asr_dataset.cpython-312.pyc differ
 
asr_dataset.py CHANGED
@@ -47,8 +47,10 @@ _DATA_URL = [
47
  "clips/clips_020.tar",
48
  "clips/clips_021.tar",
49
  ]
 
50
 
51
  _PROMPTS_URLS = {
 
52
  "train": "clips/metadata.csv"
53
  }
54
 
@@ -97,8 +99,8 @@ class ASRDataset(datasets.GeneratorBasedBuilder):
97
 
98
  def _generate_examples(self, prompts_path, path_to_clips, audio_files):
99
  """Yields examples as (key, example) tuples."""
 
100
  examples = {}
101
- metadata
102
  with open(prompts_path, encoding="utf-8") as f:
103
  for row in f:
104
  data = row.strip().split("\t", 1)
@@ -111,6 +113,7 @@ class ASRDataset(datasets.GeneratorBasedBuilder):
111
  inside_clips_dir = False
112
  id_ = 0
113
  for path, f in audio_files:
 
114
  if path.startswith(path_to_clips):
115
  inside_clips_dir = True
116
  if path in examples:
 
47
  "clips/clips_020.tar",
48
  "clips/clips_021.tar",
49
  ]
50
+ #_DATA_URL = ["ytDataset/" + x for x in _DATA_URL][:2]
51
 
52
  _PROMPTS_URLS = {
53
+ #"train": "ytDataset/clips/metadata.csv"
54
  "train": "clips/metadata.csv"
55
  }
56
 
 
99
 
100
  def _generate_examples(self, prompts_path, path_to_clips, audio_files):
101
  """Yields examples as (key, example) tuples."""
102
+ logger.info('hey there!')
103
  examples = {}
 
104
  with open(prompts_path, encoding="utf-8") as f:
105
  for row in f:
106
  data = row.strip().split("\t", 1)
 
113
  inside_clips_dir = False
114
  id_ = 0
115
  for path, f in audio_files:
116
+ print('path: ', path)
117
  if path.startswith(path_to_clips):
118
  inside_clips_dir = True
119
  if path in examples: