예제 #1
0
def get_lexemes(records):
    '''Given a list of lexical records, returns a list of lexemes. 
    
    Assumes the first field contains the lexeme form. Does not retrieve homograph numbers, nor subentries, variants, etc.
    '''
    lex = []
    for r in records:
        #get data portion of first field
        f = S.break_field(r[0])
        lexeme = f[1].rstrip().lstrip()
        lex.append(lexeme)
    return lex
예제 #2
0
def get_lexemes(records):
    '''Given a list of lexical records, returns a list of lexemes. 
    
    Assumes the first field contains the lexeme form. Does not retrieve homograph numbers, nor subentries, variants, etc.
    '''
    lex = []
    for r in records:
        #get data portion of first field
        f = S.break_field(r[0])
        lexeme = f[1].rstrip().lstrip()
        lex.append(lexeme)
    return lex