(tok: Token)
return [tok] + verb_modifiers
Expand a verb token to include all associated auxiliary and negation tokens.
Expand a verb token to include all associated auxiliary and negation tokens.
Expand a verb token to include all associated auxiliary and negation tokens .
def expand_verb(tok: Token) -> List[Token]:
    """Expand a verb token to include all associated auxiliary and negation tokens."""
    verb_modifiers = [
        child for child in tok.children if child.dep in _VERB_MODIFIER_DEPS
    ]
    return [tok] + verb_modifiers
def expand_verb ( tok : Token ) -> List [ Token ] : verb_modifiers = [ child for child in tok . children if child . dep in _VERB_MODIFIER_DEPS ] return [ tok ] + verb_modifiers