def final_cleaning_doc_level()

in build_obelics/13_final_processing.py [0:0]


def final_cleaning_doc_level(example):
    texts_example = example["texts"]
    texts = [txt for txt in texts_example if txt]
    images = [txt for txt in texts_example if not txt]
    if not texts or not images:
        return False
    return True