def load_data(filename):
    D = []
    with open(filename) as f:
        for (i, l) in enumerate(f):
            l = json.loads(l)
            (text, label) = (l['sentence'], l['label'])
            D.append((text, int(label)))
    return D
def load_data(filename):
    D = []
    with open(filename) as f:
        for (i, l) in enumerate(f):
            l = json.loads(l)
            (text, label) = (l['sentence'], l['label'])
            D.append((text, int(label)))
    return D