@classmethod
def from_file(cls, fname, delimiter='\t', encoding='utf-8'):
    """Create new instance from CSV file *fname*"""
    d = cls()
    with open(fname, 'rb') as fh:
        for line in fh:
            key, score = cls.from_record(line.decode(encoding), delimiter)
            d[key] = score
    return d
