import json


def load_data(filename):
    """Load examples from preprocessed file.
    One example per line, JSON encoded.
    """
    # Load JSON lines
    with open(filename, encoding='utf-8') as f:
        examples = [json.loads(line) for line in f]

    return examples