Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
recovers the end of the question                                   
Input=class sentence, subject and the verbal structure                           
Output=end of the sentence                                                       

        def end_question_rebuilding(sentence, sv, sn, aim):
    """
    recovers the end of the question                                   
    Input=class sentence, subject and the verbal structure                           
    Output=end of the sentence                                                       
    """

    #Recovering the verb in the correct form
    phrase = vrb_ques_rebuilding(sv[0].vrb_tense, sv[0].vrb_main, sv[0].vrb_adv, sn, sv[0].state, aim)

    #We add the direct and indirect complement
    if sv[0].i_cmpl != [] and sv[0].i_cmpl[0].prep != []:
        phrase = phrase + nom_struc_rebuilding(sv[0].d_obj)
        for x in sv[0].i_cmpl:
            phrase = phrase + indirect_compl_rebuilding(x)
    else:
        if sv[0].i_cmpl:
            phrase = phrase + indirect_compl_rebuilding(sv[0].i_cmpl[0])
        phrase = phrase + nom_struc_rebuilding(sv[0].d_obj)

        #init
        x = 1
        while x < x < len(sv[0].i_cmpl):
            phrase = phrase + indirect_compl_rebuilding(sv[0].i_cmpl[x])
            x += 1

        flag = 0
        for j in ResourcePool().verb_need_to:
            if sv[0].vrb_main == [j]:
                flag = 1

        #If there is a second verb
        for k in sv[0].sv_sec:
            phrase = scd_vrb_rebuilding(k, phrase, flag)

    #We add the adverb of the sentence
    phrase = phrase + sv[0].advrb
    return sentence + phrase
        


src/d/i/Dialogs-0.13/src/dialogs/verbalization/sentence_rebuilding.py   Dialogs(Download)
    if analysis.sv:
        #Recovering the end of the sentence
        phrase = element_rebuilding.end_question_rebuilding(phrase, analysis.sv, analysis.sn, analysis.aim)
 
        #We need special processing to find the position of the subject