(verb: Token)
return (min_i, max_i)
Return document indexes spanning all (adjacent) tokens
    around a verb that are auxiliary verbs or negations.
Return document indexes spanning all (adjacent) tokens
    around a verb that are auxiliary verbs or negations.
Return document indexes spanning all ( adjacent ) tokens around a verb that are auxiliary verbs or negations .
def get_span_for_verb_auxiliaries(verb: Token) -> Tuple[int, int]:
    """
    Return document indexes spanning all (adjacent) tokens
    around a verb that are auxiliary verbs or negations.
    """
    min_i = verb.i - sum(
        1
        for _ in itertools.takewhile(
            lambda x: x.dep_ in constants.AUX_DEPS, reversed(list(verb.lefts))
        )
    )
    max_i = verb.i + sum(
        1
        for _ in itertools.takewhile(lambda x: x.dep_ in constants.AUX_DEPS, verb.rights)
    )
    return (min_i, max_i)
def get_span_for_verb_auxiliaries ( verb : Token ) -> Tuple [ int , int ] : min_i = verb . i - sum ( 1 for _ in itertools . takewhile ( lambda x : x . dep_ in constants . AUX_DEPS , reversed ( list ( verb . lefts ) ) ) ) max_i = verb . i + sum ( 1 for _ in itertools . takewhile ( lambda x : x . dep_ in constants . AUX_DEPS , verb . rights ) ) return ( min_i , max_i )