def safe_disambiguation_iteration(): from bibauthorid_tortoise import tortoise from bibauthorid_rabbit import rabbit from bibauthorid_personid_maintenance import check_personid_papers, check_results, repair_personid if not check_personid_papers(): rabbit([]) repair_personid() rabbit([]) assert check_personid_papers() tortoise() assert check_results()
def safe_disambiguation_iteration(): from bibauthorid_tortoise import tortoise from bibauthorid_rabbit import rabbit from bibauthorid_personid_maintenance import check_personid_papers \ , check_results \ , repair_personid if not check_personid_papers(): rabbit([]) repair_personid() rabbit([]) assert check_personid_papers() tortoise() assert check_results()
def test_accuracy(): from bibauthorid_tortoise import tortoise from bibauthorid_rabbit import rabbit from bibauthorid_personid_maintenance import check_personid_papers \ , check_results \ , repair_personid from bibauthorid_merge import matched_claims if not check_personid_papers(): rabbit([]) repair_personid() rabbit([]) assert check_personid_papers() tortoise(pure=True) assert check_results() return matched_claims()
def safe_merger(): from bibauthorid_merge import merge_static from bibauthorid_rabbit import rabbit from bibauthorid_personid_maintenance import check_personid_papers \ , check_results \ , check_merger \ , repair_personid \ , copy_personids \ , compare_personids assert check_results() if not check_personid_papers(): rabbit([]) repair_personid() rabbit([]) assert check_personid_papers() copy_personids() merge_static() assert check_personid_papers() assert check_merger() compare_personids("/tmp/merge_diff")
def initial_disambiguation(): from bibauthorid_tortoise import tortoise_from_scratch from bibauthorid_personid_maintenance import check_results tortoise_from_scratch() assert check_results()