Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
recovers the part of the second verb                                 
Input=class sentence, phrase and a flag                       
Output=phrase                                                    

        def scd_vrb_rebuilding(sec_vrb, phrase, flg):
    """
    recovers the part of the second verb                                 
    Input=class sentence, phrase and a flag                       
    Output=phrase                                                    
    """

    if flg == 1:
        phrase = phrase + sec_vrb.vrb_adv + other_functions.list_rebuilding(sec_vrb.vrb_main[0])
    else:
        #Add this verb with 'to'
        phrase = phrase + ['to'] + sec_vrb.vrb_adv + other_functions.list_rebuilding(sec_vrb.vrb_main[0])

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

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

    for z in sec_vrb.sv_sec:
        phrase = scd_vrb_rebuilding(z, phrase, flag)

    #We add the adverb of the sentence
    phrase = phrase + sec_vrb.advrb

    return phrase
        


src/d/i/Dialogs-0.13/src/dialogs/verbalization/sentence_rebuilding.py   Dialogs(Download)
 
            for k in analysis.sv[0].sv_sec:
                phrase = element_rebuilding.scd_vrb_rebuilding(k, phrase, flag)
 
            for s in analysis.sv[0].vrb_sub_sentence: