def predicates_overlap(tags1: List[str], tags2: List[str]) -> bool:
    """
    Tests whether the predicate in BIO tags1 overlap
    with those of tags2.
    """
    # Get predicate word indices from both predictions
    pred_ind1 = get_predicate_indices(tags1)
    pred_ind2 = get_predicate_indices(tags2)

    # Return if pred_ind1 pred_ind2 overlap
    return any(set.intersection(set(pred_ind1), set(pred_ind2)))
def predicates_overlap ( tags1 : List [ str ] , tags2 : List [ str ] ) -> bool : pred_ind1 = get_predicate_indices ( tags1 ) pred_ind2 = get_predicate_indices ( tags2 ) return any ( set . intersection ( set ( pred_ind1 ) , set ( pred_ind2 ) ) )
Tests whether the predicate in BIO tags1 overlap
    with those of tags2.