predpatt/filters.py
def isGoodDescendants(pred):
    """
    Returns true if verb immediately dominates a relation that might alter
    its veridicality. This filter is very
    conservative; many veridical verbs will be excluded.
    """
    embedding_deps = {"neg", "advmod", "aux", "mark", "advcl", "appos"}
    for desc in pred.root.dependents:
        # The following is true if child is in fact a child
        # of verb
        if desc.rel in embedding_deps:
            return False
    filter_rules = getattr(pred, 'rules', [])
    filter_rules.append(isGoodDescendants.__name__)
    return True

    Returns true if verb immediately dominates a relation that might alter
    its veridicality. This filter is very
    conservative; many veridical verbs will be excluded.
    
Returns true if verb immediately dominates a relation that might alter
its veridicality. This filter is very
conservative; many veridical verbs will be excluded.
Returns true if verb immediately dominates a relation that might alter its veridicality . This filter is very conservative ; many veridical verbs will be excluded .
def isGoodDescendants(pred):
    embedding_deps = {"neg", "advmod", "aux", "mark", "advcl", "appos"}
    for desc in pred.root.dependents:
        if desc.rel in embedding_deps:
            return False
    filter_rules = getattr(pred, 'rules', [])
    filter_rules.append(isGoodDescendants.__name__)
    return True
def isGoodDescendants ( pred ) : embedding_deps = { "neg" , "advmod" , "aux" , "mark" , "advcl" , "appos" } for desc in pred . root . dependents : if desc . rel in embedding_deps : return False filter_rules = getattr ( pred , 'rules' , [ ] ) filter_rules . append ( isGoodDescendants . __name__ ) return True
Returns true if verb immediately dominates a relation that might alter
its veridicality.
Returns true if verb immediately dominates a relation that might alter its veridicality .
"""
    Returns true if verb immediately dominates a relation that might alter
    its veridicality. This filter is very
    conservative; many veridical verbs will be excluded.
    """ # The following is true if child is in fact a child # of verb
pred