def test_token_entity_intersection():
    intsec = determine_intersection(CH_correct_segmentation[1], CH_correct_entity)
    assert (intsec == len(CH_correct_segmentation[1].text))
    intsec = determine_intersection(CH_correct_segmentation[2], CH_correct_entity)
    assert (intsec == 0)
    intsec = determine_intersection(CH_correct_segmentation[1], CH_wrong_entity)
    assert (intsec == 1)
def test_token_entity_intersection():
    intsec = determine_intersection(CH_correct_segmentation[1], CH_correct_entity)
    assert (intsec == len(CH_correct_segmentation[1].text))
    intsec = determine_intersection(CH_correct_segmentation[2], CH_correct_entity)
    assert (intsec == 0)
    intsec = determine_intersection(CH_correct_segmentation[1], CH_wrong_entity)
    assert (intsec == 1)