def filter_paradigm()

in results/summarize_presupposition_results.py [0:0]


def filter_paradigm(paradigm):
    filtered = []
    if not correct_prediction(get_by_filter(paradigm, "test_unembedded_positive", one=True)):
        return filtered
    else:
        filtered.extend(get_by_filter(paradigm, "test_unembedded_*"))
    if correct_prediction(get_by_filter(paradigm, "control_negated", one=True)):
        filtered.extend(get_by_filter(paradigm, "test_negated_*"))
    if correct_prediction(get_by_filter(paradigm, "control_modal", one=True)):
        filtered.extend(get_by_filter(paradigm, "test_modal_*"))
    if correct_prediction(get_by_filter(paradigm, "control_interrogative", one=True)):
        filtered.extend(get_by_filter(paradigm, "test_interrogative_*"))
    if correct_prediction(get_by_filter(paradigm, "control_conditional", one=True)):
        filtered.extend(get_by_filter(paradigm, "test_conditional_*"))
    return filtered