def evaluate_answer(patterns, answer):
    if len(patterns) == 0:
        log.error("no patterns found")
    for pattern in patterns:
        log.info("pattern: %s", pattern)
        pattern = r'.*{}.*'.format(pattern)
        if re.match(pattern, answer, flags=re.IGNORECASE):
            return True
    return False
compare a single answer to acceptable patterns
dataset/ETHPy150Open jcelliott/inquire/inquire/evaluation/eval.py/evaluate_answer