Ejemplo n.º 1
0
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()
Ejemplo n.º 3
0
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 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()
Ejemplo n.º 5
0
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 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")