def tortoise(pure=False, only_missing=False): names = create_lastname_list_from_personid() names = sorted(names, key=itemgetter(2)) args = [(x[1], x[0], pure, only_missing) for x in names] sizs = map(itemgetter(2), names) schedule(disambiguate_last_name, args, sizs)
def tortoise_from_scratch(): cluster_sets = ((cs, sum(len(c.bibs) for c in cs.clusters)) for cs in cluster_sets_from_marktables()) cluster_sets = sorted(cluster_sets, key=itemgetter(1)) args = [(x[0], ) for x in cluster_sets] sizs = map(itemgetter(1), cluster_sets) schedule(disambiguate, args, sizs)