predpatt/filters.py
def has_direct_arc(pred, arg):
    "Check if the argument and predicate has a direct arc."
    if arg.root.gov == pred.root:
        filter_rules = getattr(arg, 'rules', [])
        filter_rules.append(has_direct_arc.__name__)
        return True
    return False
Check if the argument and predicate has a direct arc.
Check if the argument and predicate has a direct arc.
Check if the argument and predicate has a direct arc .
def has_direct_arc(pred, arg):
    if arg.root.gov == pred.root:
        filter_rules = getattr(arg, 'rules', [])
        filter_rules.append(has_direct_arc.__name__)
        return True
    return False
def has_direct_arc ( pred , arg ) : if arg . root . gov == pred . root : filter_rules = getattr ( arg , 'rules' , [ ] ) filter_rules . append ( has_direct_arc . __name__ ) return True return False
Check if the argument and predicate has a direct arc.
Check if the argument and predicate has a direct arc .
"Check if the argument and predicate has a direct arc."
pred
arg