import json


def load_json(filename):
    """
    json loader to load Nematus vocabularies
    Note that we use unicode representations (not str)
    :param filename:
    :return:
    """
    with open(filename, mode='rb') as f:
        return json.load(f)