def load_unsel_feats(dir, sent_name):
    """Returns the unsel features for the specified sentence loaded from the given directory."""
    enrg_name = sent_name + ".enrg.txt"
    f0_name = sent_name + ".f0.txt"
    mfcc_name = sent_name + ".mfcc.txt"
    enrg = []
    f0 = []
    mfcc = []
    with open(dir / enrg_name, 'r') as fr:
        for line in fr:
            if line[0] != '|':
                continue
            line = line[:-1].replace(' ', '')
            items = line.split('|')
            enrg.append((float(items[1]), float(items[3])))
    with open(dir / f0_name, 'r') as fr:
        for line in fr:
            if line[0] != '|':
                continue
            line = line[:-1].replace(' ', '')
            items = line.split('|')
            f0.append((float(items[1]), float(items[3])))
    with open(dir / mfcc_name, 'r') as fr:
        for line in fr:
            if line[0] != '|':
                continue
            line = line[:-1].replace(' ', '')
            items = line.split('|')
            items = tuple([float(el) for el in items[1:-1]])
            mfcc.append(items)

    return enrg, f0, mfcc