def has_person(doc):
    """
    Doc-level spaCy attribute getter, which returns True if
    any named entity in the Doc is a PERSON.
    """
    return any([ent.label_ == "PERSON" for ent in doc.ents])