def contains_phi(text): if looks_like_date(text): return True if looks_like_identifier(text): return True return ner_model.predict(text)