mtp/machamp/dataset_readers/reader_utils.py
def lines2data(input_file, do_lowercase):
    """
    Simply reads a tab-separated text file. Returns each line split
    by a '\t' character.
    """
    for line in open(input_file, mode='r', encoding='utf-8'):
        if do_lowercase:
            line = line.lower()
        tok = [part for part in line.strip().split('\t')]
        yield tok

    Simply reads a tab-separated text file. Returns each line split
    by a '\t' character.
    
Simply reads a tab-separated text file. Returns each line split
by a '\t' character.
Simply reads a tab - separated text file . Returns each line split by a ' \ t ' character .
def lines2data(input_file, do_lowercase):
    for line in open(input_file, mode='r', encoding='utf-8'):
        if do_lowercase:
            line = line.lower()
        tok = [part for part in line.strip().split('\t')]
        yield tok
def lines2data ( input_file , do_lowercase ) : for line in open ( input_file , mode = 'r' , encoding = 'utf-8' ) : if do_lowercase : line = line . lower ( ) tok = [ part for part in line . strip ( ) . split ( '\t' ) ] yield tok
Simply reads a tab-separated text file.
Simply reads a tab - separated text file .
"""
    Simply reads a tab-separated text file. Returns each line split
    by a '\t' character.
    """
input_file
do_lowercase