predpatt/filters.py
def filter_events_SPRL(event, parse):
    "Filters for running UD SPRL HIT"
    if isNotInterrogative(parse):
        return all(f(event) for f in (isPredVerb,
                                      isGoodAncestor,
                                      isGoodDescendants,
                                      lambda p: hasSubj(p, passive=True), #(including nsubjpass)
                                      #good_morphology, (documented below; depends on full UD/CoNLLU schema)
                                      # isSbjOrObj, #(including nsubjpass)
                                      #is_expletive,
                                  ))
Filters for running UD SPRL HIT
Filters for running UD SPRL HIT
Filters for running UD SPRL HIT
def filter_events_SPRL(event, parse):
    if isNotInterrogative(parse):
        return all(f(event) for f in (isPredVerb,
                                      isGoodAncestor,
                                      isGoodDescendants,
                                      lambda p: hasSubj(p, passive=True), 
                                      # isSbjOrObj, 
                                  ))
def filter_events_SPRL ( event , parse ) : if isNotInterrogative ( parse ) : return all ( f ( event ) for f in ( isPredVerb , isGoodAncestor , isGoodDescendants , lambda p : hasSubj ( p , passive = True ) , ) )
Filters for running UD SPRL HIT
Filters for running UD SPRL HIT
"Filters for running UD SPRL HIT" #(including nsubjpass) #good_morphology, (documented below; depends on full UD/CoNLLU schema) # isSbjOrObj, #(including nsubjpass) #is_expletive,
event
parse