598d2b54295bdb2b741b1bcf1f794eabbdf3200b,data/ted.py,,main,#,82
Before Change
target_file = os.path.join( target_dl_dir, "TEDLIUM_release2.tar.gz" )
target_unpacked_dir = os.path.join( target_dl_dir, "TEDLIUM_release2" )
if not os.path.exists( target_file ):
print("Downloading corpus...")
subprocess.call(["wget {} -P {}".format( TED_LIUM_V2_DL_URL, target_dl_dir )], shell=True)
if not os.path.exists( target_unpacked_dir ):
print("Unpacking courpus...")
os.makedirs( target_unpacked_dir )
subprocess.call(["tar zxvf {} -C {}".format( target_file, target_dl_dir )], shell = True)
After Change
target_file = args.tar_path
else:
print("Could not find downloaded TEDLIUM archive, Downloading corpus...")
wget.download(TED_LIUM_V2_DL_URL, target_dl_dir)
target_file = os.path.join(target_dl_dir, "TEDLIUM_release2.tar.gz")
if not os.path.exists(target_unpacked_dir):
print("Unpacking corpus...")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: SeanNaren/deepspeech.pytorch
Commit Name: 598d2b54295bdb2b741b1bcf1f794eabbdf3200b
Time: 2017-04-23
Author: seannaren@hotmail.com
File Name: data/ted.py
Class Name:
Method Name: main
Project Name: autoreject/autoreject
Commit Name: ec70118625aa40a8ce038784005b877d79e58359
Time: 2021-03-26
Author: aprockhill@mailbox.org
File Name: examples/plot_visualize_bad_epochs.py
Class Name:
Method Name:
Project Name: facebookresearch/ParlAI
Commit Name: d4e3b1c76360bcf72cbae541834f8cd38f5449ee
Time: 2019-03-21
Author: jju@fb.com
File Name: parlai/tasks/light_dialog/build.py
Class Name:
Method Name: build