INNER CODE UNIT · Python

read_list

flashlight/wav2letter · data/librispeech/utils.py:49

def read_list(src, files):
    ret = []
    for file in files:
        with open(os.path.join(src, file + ".lst"), "r") as f:
            for line in f:
                _, _, _, trans = line.strip().split(" ", 3)
                ret.append(trans)

    return ret

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…