Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
This function put indirect complements with same proposal together
Input=verbal structure                         Output=verbal structure        

        def refine_indirect_complement(vg):
    """
    This function put indirect complements with same proposal together
    Input=verbal structure                         Output=verbal structure        
    """

    #init
    i = 0

    while i < len(vg.i_cmpl):
        j = i + 1
        if vg.i_cmpl[i].prep:
            while j < len(vg.i_cmpl):
                #If we have the same proposal, we concatenate them
                if vg.i_cmpl[j].prep != [] and vg.i_cmpl[i].prep == vg.i_cmpl[j].prep:
                    vg.i_cmpl[i].gn = vg.i_cmpl[i].gn + vg.i_cmpl[j].gn
                    vg.i_cmpl = vg.i_cmpl[:j] + vg.i_cmpl[j + 1:]
                else:
                    j += 1
        i += 1
    return vg
        


src/d/i/Dialogs-0.13/src/dialogs/parsing/analyse_sentence.py   Dialogs(Download)
            sentence = stc
 
    vg = analyse_verbal_structure.refine_indirect_complement(vg)
    vg = analyse_verbal_structure.refine_subsentence(vg)
    vg = analyse_verbal_structure.DOC_to_IOC(vg)
            sentence = stc
 
    vg = analyse_verbal_structure.refine_indirect_complement(vg)
    vg = analyse_verbal_structure.refine_subsentence(vg)
    vg = analyse_verbal_structure.DOC_to_IOC(vg)