def METHOD_NAME(qfile, clabel,savepath, mixed =False):
    raw = []
    types_all = []
    with open(qfile, 'r') as f:
        for line in f.readlines():
            item = json.loads(line)
            question = item['text']
            mention = item['mention']
            types = item['types'] if 'types' in item else None
            raw.append((question, mention))
            types_all.append(types)
    if mixed:
        out = labelling(raw,types_all, mixed)
    else:
        if clabel is None:
            clabel = 1
        out = labelling(raw, clabel)
    with open(savepath, 'w') as f:
        for datum in out:
            json.dump(datum, f)
            f.write('\n')