91694cda9cc4fc4160b10821fd985d466470a895,data/utils.py,,create_manifest,#Any#Any#Any#,15
Before Change
sample = os.path.abspath(wav_path) + "," + os.path.abspath(transcript_path) + "\n"
file.write(sample.encode("utf-8"))
counter += 1
update_progress(counter / float(size))
print("\n")
After Change
if ordered:
_order_files(file_paths)
with io.FileIO(manifest_path, "w") as file:
for wav_path in tqdm(file_paths, total=len(file_paths)):
transcript_path = wav_path.replace("/wav/", "/txt/").replace(".wav", ".txt")
sample = os.path.abspath(wav_path) + "," + os.path.abspath(transcript_path) + "\n"
file.write(sample.encode("utf-8"))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: SeanNaren/deepspeech.pytorch
Commit Name: 91694cda9cc4fc4160b10821fd985d466470a895
Time: 2017-10-04
Author: seannaren@hotmail.com
File Name: data/utils.py
Class Name:
Method Name: create_manifest
Project Name: emedvedev/attention-ocr
Commit Name: 4bb608662475ecf87dc773a6a1c6914a6c374597
Time: 2017-01-10
Author: sivanke11@gmail.com
File Name: src/model/model.py
Class Name: Model
Method Name: launch
Project Name: pytorch/text
Commit Name: 812ddc9595195887b7574512bd1021743354b064
Time: 2019-08-02
Author: 6156351+zhangguanheng66@users.noreply.github.com
File Name: examples/text_classification/train.py
Class Name:
Method Name: train_and_valid