(verb: Token)
return objs
Return all objects of a verb according to the dependency parse,
    including open clausal complements.
Return all objects of a verb according to the dependency parse,
    including open clausal complements.
Return all objects of a verb according to the dependency parse including open clausal complements .
def get_objects_of_verb(verb: Token) -> List[Token]:
    """
    Return all objects of a verb according to the dependency parse,
    including open clausal complements.
    """
    objs = [tok for tok in verb.rights if tok.dep_ in constants.OBJ_DEPS]
    # get open clausal complements (xcomp)
    objs.extend(tok for tok in verb.rights if tok.dep_ == "xcomp")
    # get additional conjunct objects
    objs.extend(tok for obj in objs for tok in _get_conjuncts(obj))
    return objs
def get_objects_of_verb ( verb : Token ) -> List [ Token ] : objs = [ tok for tok in verb . rights if tok . dep_ in constants . OBJ_DEPS ] # get open clausal complements (xcomp) objs . extend ( tok for tok in verb . rights if tok . dep_ == "xcomp" ) # get additional conjunct objects objs . extend ( tok for obj in objs for tok in _get_conjuncts ( obj ) ) return objs