def has_prepared_answer(prep_answers: List[List[str]], text):
    """Check if a document contains an answer string."""
    text = normalize(text)
    # Answer is a list of possible strings
    text = tokenize(text)
    for single_answer in prep_answers:
        for i in range(0, len(text) - len(single_answer) + 1):
            if single_answer == text[i : i + len(single_answer)]:
                return True
    return False
Check if a document contains an answer string.
se2/DPR/dpr/data/tables.py