def test_determine_token_labels_with_extractors(): determine_token_labels(CH_correct_segmentation[0], [CH_correct_entity, CH_wrong_entity], ["A", "B"])
def test_determine_token_labels_throws_error(): with pytest.raises(ValueError): determine_token_labels(CH_correct_segmentation, [CH_correct_entity, CH_wrong_entity], ["CRFEntityExtractor"])
def test_determine_token_labels_no_extractors(): determine_token_labels(CH_correct_segmentation[0], [CH_correct_entity, CH_wrong_entity], None)
def test_determine_token_labels_no_extractors_no_overlap(): determine_token_labels(CH_correct_segmentation[0], EN_targets, None)
def test_determine_token_labels_with_extractors(): determine_token_labels( CH_correct_segmentation[0], [CH_correct_entity, CH_wrong_entity], [SpacyEntityExtractor.name, MitieEntityExtractor.name])
def test_determine_token_labels_no_extractors(): with pytest.raises(ValueError): determine_token_labels(CH_correct_segmentation[0], [CH_correct_entity, CH_wrong_entity], None)
def test_determine_token_labels_with_extractors(): determine_token_labels(CH_correct_segmentation[0], [CH_correct_entity, CH_wrong_entity], [SpacyEntityExtractor.name, MitieEntityExtractor.name])
def test_determine_token_labels_throws_error(): with pytest.raises(ValueError): determine_token_labels(CH_correct_segmentation[0], [CH_correct_entity, CH_wrong_entity], ["CRFEntityExtractor"])