Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
process the second sentence found                                   
Input=sentence, verbal class and the second verb                                 
Output=sentence and verbal class                                                 

        def process_scd_sentence(phrase, vg, sec_vrb):
    """
    process the second sentence found                                   
    Input=sentence, verbal class and the second verb                                 
    Output=sentence and verbal class                                                 
    """

    #We take off the part of the sentence after 'to'
    scd_sentence = phrase[phrase.index(sec_vrb[0]):]
    phrase = phrase[:phrase.index(sec_vrb[0])]

    #We process the verb
    if scd_sentence[0] == 'not':
        scd_verb = [other_functions.convert_to_string(analyse_verb.return_verb(scd_sentence, [scd_sentence[1]], ''))]
        vg.sv_sec = vg.sv_sec + [Verbal_Group(scd_verb, [], '', [], [], [], [], Verbal_Group.negative, [])]
        #We delete the verb
        scd_sentence = scd_sentence[phrase.index(scd_sentence[1]) + 1:]
    else:
        scd_verb = [other_functions.convert_to_string(analyse_verb.return_verb(scd_sentence, [scd_sentence[0]], ''))]
        vg.sv_sec = vg.sv_sec + [Verbal_Group(scd_verb, [], '', [], [], [], [], Verbal_Group.affirmative, [])]
        #We delete the verb
        scd_sentence = scd_sentence[scd_sentence.index(scd_sentence[0]) + 1:]

    #We recover the conjunctive subsentence
    scd_sentence = process_conjunctive_sub(scd_sentence, vg.sv_sec[0])

    #It verifies if there is a secondary verb
    sec_sec_vrb = find_scd_vrb(scd_sentence)
    if sec_sec_vrb:
        #print vg.sv_sec[0].sv_sec
        scd_sentence = process_scd_sentence(scd_sentence, vg.sv_sec[0], sec_sec_vrb)

    #We recover the subsentence
    scd_sentence = process_subsentence(scd_sentence, vg)

    #Process relative changes
    scd_sentence = correct_i_compl(scd_sentence, scd_verb)

    #We process the end of the second sentence
    scd_sentence = find_adv(scd_sentence, vg.sv_sec[0])
    scd_sentence = recover_obj_iobj(scd_sentence, vg.sv_sec[0])

    return phrase
        


src/d/i/Dialogs-0.13/src/dialogs/parsing/analyse_sentence.py   Dialogs(Download)
        sec_vrb = analyse_verbal_structure.find_scd_vrb(sentence)
        if sec_vrb:
            sentence = analyse_verbal_structure.process_scd_sentence(sentence, vg, sec_vrb)
 
        #We recover the subsentence
    sec_vrb = analyse_verbal_structure.find_scd_vrb(sentence)
    if sec_vrb:
        sentence = analyse_verbal_structure.process_scd_sentence(sentence, vg, sec_vrb)
 
    #We recover the subsentence