aburnazyan commited on
Commit
568948d
1 Parent(s): eec169b
Files changed (1) hide show
  1. hy_asr_grqaser.py +1 -3
hy_asr_grqaser.py CHANGED
@@ -38,9 +38,7 @@ class HyAsrGrqaser(GeneratorBasedBuilder):
38
  # Generate examples
39
  for idx, row in metadata.iterrows():
40
  file_path = os.path.join(data_dir, row['file_name'])
41
- transcription_path = os.path.join(data_dir, row['transcription'])
42
- with open(transcription_path, 'r') as f:
43
- transcription = f.read().strip()
44
  yield idx, {
45
  'audio': {'path': file_path},
46
  'sentence': transcription
 
38
  # Generate examples
39
  for idx, row in metadata.iterrows():
40
  file_path = os.path.join(data_dir, row['file_name'])
41
+ transcription = row['transcription']
 
 
42
  yield idx, {
43
  'audio': {'path': file_path},
44
  'sentence': transcription