flashlight / wav2letter

Facebook AI Research's Automatic Speech Recognition Toolkit
https://github.com/facebookresearch/wav2letter/wiki
Other
6.35k stars 1.02k forks source link

fixed sys.argv index to solve out of index error #989

Closed Splend1d closed 2 years ago

Splend1d commented 2 years ago

fixed sys.argv index to solve error in recipes/sota/2019/lm_corpus_and_PL_generation/generate_uniq.py

IMPORTANT: Please do not create a Pull Request without creating an issue first. Changes must be discussed.

Original Issue: incorrect sys.argv index at wav2letter/recipes/sota/2019/lm_corpus_and_PL_generation/generate_uniq.py

closes #988

Summary

changed sys.argv[2] to sys.argv[1] at line 10, which solves the described error.

Test Plan (required)

Tested with the official readme at wav2letter/recipes/sota/2019/lm_corpus_and_PL_generation. The process python3 generate_uniq.py librispeech_lm_corpus_raw_without_librivox.txt.norm does not give out "out of index error" after this change

tlikhomanenko commented 2 years ago

Thanks! cc @jacobkahn

facebook-github-bot commented 2 years ago

@jacobkahn has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.