Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
find the verb in a statement
Input=sentence, tense and the adverb bound to the verb      Output=main verb     

        def find_verb_statement(phrase, tense):
    """
    find the verb in a statement
    Input=sentence, tense and the adverb bound to the verb      Output=main verb     
    """

    #If phrase is empty
    if len(phrase) == 0:
        return []

    elif tense == 'present simple' or tense == 'past simple':
        return [phrase[0]]

    elif tense == 'present perfect' or tense == 'past perfect' or tense == 'future simple':
        return [phrase[1]]

    elif tense == 'present progressive' or tense == 'past progressive':
        return [phrase[1]]

    elif tense == 'present passive' or tense == 'past passive':
        return [phrase[1]]

    elif tense == 'present conditional':
        return [phrase[1]]

    elif tense == 'past conditional' or 'passive conditional':
        return [phrase[2]]

    #Default case
    return []
        


src/d/i/Dialogs-0.13/src/dialogs/parsing/analyse_sentence.py   Dialogs(Download)
            vg.vrb_tense = analyse_verb.find_tense_statement(sentence)
 
        verb = analyse_verb.find_verb_statement(sentence, vg.vrb_tense)
        verb_main = analyse_verb.return_verb(sentence, verb, vg.vrb_tense)
        vg.vrb_main = [other_functions.convert_to_string(verb_main)]