Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
This function transform ':to' into 'to' if it isn't in subsentence of the subsentence                 
Input=sentence                              Output=sentence                      

        def recover_scd_verb_sub(sentence):
    """ 
    This function transform ':to' into 'to' if it isn't in subsentence of the subsentence                 
    Input=sentence                              Output=sentence                      
    """

    #init
    i = flag = 0

    while i < len(sentence):

        if sentence[i] in ResourcePool().subsentences + ResourcePool().relatives:
            flag += 1

        if sentence[i] == ';':
            flag -= 1

        if sentence[i] == ':to' and flag == 0:
            sentence[i] = 'to'

        i += 1

    return sentence
        


src/d/i/Dialogs-0.13/src/dialogs/parsing/analyse_verbal_structure.py   Dialogs(Download)
                subsentence = phrase[begin_pos + 1:begin_pos + end_pos]
                if len(subsentence) > 1:
                    subsentence = other_functions.recover_scd_verb_sub(subsentence)
 
                    if w != 'which':
        #We have to remove the proposal
        subsentence = phrase[begin_pos + 1:end_pos]
        subsentence = other_functions.recover_scd_verb_sub(subsentence)
 
        #We perform processing

src/d/i/Dialogs-0.13/src/dialogs/parsing/analyse_nominal_structure.py   Dialogs(Download)
    if begin_pos_rel != -1:
        relative_phrase = phrase[begin_pos_rel + 1:begin_pos_rel + end_pos_rel - 1]
        relative_phrase = other_functions.recover_scd_verb_sub(relative_phrase)
 
        #If it is a place, we have not to duplicate the nominal group