def load_metadata(filename):
    """ Loads transcriptions from metadata csv. """
    with open(filename, encoding='utf-8') as f:
        filepaths_and_text = [line.strip().split("|")[:2] for line in f]

    return dict(filepaths_and_text)