(answer)
return question, answer
Generate a question by adding noise
Generate a question by adding noise
Generate a question by adding noise
def generate_question(answer):
    """Generate a question by adding noise"""
    question = add_noise_to_string(answer, AMOUNT_OF_NOISE)
    # Add padding:
    question += PADDING * (CONFIG.max_input_len - len(question))
    answer += PADDING * (CONFIG.max_input_len - len(answer))
    return question, answer
def generate_question ( answer ) : question = add_noise_to_string ( answer , AMOUNT_OF_NOISE ) # Add padding: question += PADDING * ( CONFIG . max_input_len - len ( question ) ) answer += PADDING * ( CONFIG . max_input_len - len ( answer ) ) return question , answer