import csv


def read_score_file(filename):
    """
    Reads the given score file.
    :param filename: A CSV file with segment scores.
    :return: A dictionary with segment name to score mappings.
    """
    """Returns a dictionary of the scores in the csv file *filename*"""
    with open(filename, 'r') as fp:
        csv_file = csv.reader(fp)
        _ = next(csv_file)
        return {segment_name: float(score) for segment_name, score in csv_file}