Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
verbalises a w_question                                            
Input=class sentence                              Output=sentence                

        def w_question(analysis):
    """
    verbalises a w_question                                            
    Input=class sentence                              Output=sentence                
    """
    if analysis.sv:
        #Opinion is a what question so we have to make some changes
        if analysis.sv[0].vrb_main[0].endswith('like'):
            verb = analysis.sv[0].vrb_main[0]
            analysis.sv[0].vrb_main[0] = verb[:len(verb) - 4] + 'think+of'

    #processing as yes or no question
    phrase = y_o_question(analysis)

    #Specific processing for invitation
    if analysis.aim == 'invitation':
        return ['how', 'about'] + phrase[1:]

    #Specific processing for classification
    if analysis.aim.startswith('classification'):
        aim_question = other_functions.list_rebuilding(analysis.aim)
        return ['what', 'kind', 'of'] + aim_question[1:] + phrase

    #It is an how question
    if other_functions.is_an_adj(analysis.aim) == 1:
        return ['how'] + [analysis.aim] + phrase
    elif analysis.aim == 'manner':
        return ['how'] + phrase

    if analysis.aim == 'thing' or analysis.aim == 'situation' or analysis.aim == 'explication' or analysis.aim == 'opinion':
        return ['what'] + phrase
    return ['what'] + [analysis.aim] + phrase
        


src/d/i/Dialogs-0.13/src/dialogs/verbalization/utterance_rebuilding.py   Dialogs(Download)
        #All other cases of w_question
        else:
            return sentence_rebuilding.w_question(analysis)
 
    #Default case