marinone94 commited on
Commit
57ad2fb
1 Parent(s): dceb34d

columns as args in common cols

Browse files
Files changed (1) hide show
  1. run_speech_recognition_ctc.py +3 -3
run_speech_recognition_ctc.py CHANGED
@@ -418,9 +418,9 @@ def main():
418
  # 1. First, let's load the dataset
419
  raw_datasets = DatasetDict()
420
 
421
- def common_cols(dataset_a, dataset_b):
422
- col_a = set(dataset_a.column_names)
423
- col_b = set(dataset_b.column_names)
424
  return [col for col in col_a if col in col_b]
425
 
426
  if training_args.do_train:
 
418
  # 1. First, let's load the dataset
419
  raw_datasets = DatasetDict()
420
 
421
+ def common_cols(columns_a, columns_b):
422
+ col_a = set(columns_a)
423
+ col_b = set(columns_b)
424
  return [col for col in col_a if col in col_b]
425
 
426
  if training_args.do_train: