def clean_hypothesis(hyp: str) -> str:
    """
    Remove extra words after the question mark of the generated question

    Parameters
    ----------
    hyp : str
        Hypothesis question

    Returns
    -------
    str
        the cleaned hypothesis question
    """
    _loc = hyp.find("?")
    if _loc == -1:  # cannot find a question mark
        return hyp
    else:
        return hyp[:_loc+1]