Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
This function find 'to' of probably second verb and transform it into ':to'               
Input=sentence                              Output=sentence                      

        def find_scd_verb_sub(sentence):
    """ 
    This function find 'to' of probably second verb and transform it into ':to'               
    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_sentence.py   Dialogs(Download)
 
    #We start with determination of probably second verb in subsentence
    sentence = other_functions.find_scd_verb_sub(sentence)
 
    #We have to add punctuation if there is not
 
    #We start with determination of probably second verb in subsentence
    sentence = other_functions.find_scd_verb_sub(sentence)
 
    #We search the subject