def read_file(filename):
    '读取文件数据'
    (contents, labels) = ([], [])
    with open_file(filename) as f:
        for line in f:
            try:
                (label, content) = line.strip().split('\t')
                contents.append(content)
                if content:
                    labels.append(native_content(label))
            except:
                pass
    return (contents, labels)
读取文件数据
def read_file(filename):
    
    (contents, labels) = ([], [])
    with open_file(filename) as f:
        for line in f:
            try:
                (label, content) = line.strip().split('\t')
                contents.append(content)
                if content:
                    labels.append(native_content(label))
            except:
                pass
    return (contents, labels)