utils_dr.py
def simi_word(verb, descat):
    '''
    at train and gen time, get the simi verb with descat
    get the infi form of word
    '''
    infi = word_infinitive(verb)
    row = verb2simi[verb2simi['verb'] == infi]
    li = row[descat].tolist()
    if len(li) > 0:
        return li[0]
    fw.write(verb+'\n')
    return verb

    at train and gen time, get the simi verb with descat
    get the infi form of word
    
at train and gen time, get the simi verb with descat
get the infi form of word
at train and gen time get the simi verb with descat get the infi form of word
def simi_word(verb, descat):
    infi = word_infinitive(verb)
    row = verb2simi[verb2simi['verb'] == infi]
    li = row[descat].tolist()
    if len(li) > 0:
        return li[0]
    fw.write(verb+'\n')
    return verb
def simi_word ( verb , descat ) : infi = word_infinitive ( verb ) row = verb2simi [ verb2simi [ 'verb' ] == infi ] li = row [ descat ] . tolist ( ) if len ( li ) > 0 : return li [ 0 ] fw . write ( verb + '\n' ) return verb
at train and gen time, get the simi verb with descat
get the infi form of word
at train and gen time get the simi verb with descat get the infi form of word
'''
    at train and gen time, get the simi verb with descat
    get the infi form of word
    '''
verb
descat