AlexN commited on
Commit
44c4739
1 Parent(s): ee05d5c

from pretrained on tokenizer

Browse files
Files changed (1) hide show
  1. run_speech_recognition_ctc.py +5 -4
run_speech_recognition_ctc.py CHANGED
@@ -522,10 +522,11 @@ def main():
522
  # one local process can concurrently download model & vocab.
523
 
524
  # load feature_extractor and tokenizer
525
- tokenizer = Wav2Vec2CTCTokenizer(tokenizer_name_or_path,
526
- use_auth_token=data_args.use_auth_token,
527
- **tokenizer_kwargs,
528
- )
 
529
  feature_extractor = AutoFeatureExtractor.from_pretrained(
530
  model_args.model_name_or_path, cache_dir=model_args.cache_dir, use_auth_token=data_args.use_auth_token
531
  )
 
522
  # one local process can concurrently download model & vocab.
523
 
524
  # load feature_extractor and tokenizer
525
+ tokenizer = Wav2Vec2CTCTokenizer.from_pretrained(
526
+ tokenizer_name_or_path,
527
+ use_auth_token=data_args.use_auth_token,
528
+ **tokenizer_kwargs,
529
+ )
530
  feature_extractor = AutoFeatureExtractor.from_pretrained(
531
  model_args.model_name_or_path, cache_dir=model_args.cache_dir, use_auth_token=data_args.use_auth_token
532
  )