Did I find the right examples for you? yes no

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

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

    #Recovering the verb in the correct form
    phrase = vrb_stat_rebuilding(sv[0].vrb_tense, sv[0].vrb_main, sv[0].vrb_adv, sn, sv[0].state, type, 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 < len(sv[0].i_cmpl):
            phrase = phrase + indirect_compl_rebuilding(sv[0].i_cmpl[x])
            x += 1

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

    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)

    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_statement_rebuilding(phrase, analysis.sv, analysis.sn, analysis.data_type,
                                                             analysis.aim)
 
    if analysis.sv:
        #Recovering the basic part of the sentence
        phrase = element_rebuilding.end_statement_rebuilding(phrase, analysis.sv, analysis.sn, analysis.data_type,
                                                             analysis.aim)