import pickle


def load_object(path: str):
    """
    Unpickle a saved object.

    :param path: path to a pickled object
    :return: the object
    """
    with open(path, "rb") as handle:
        tokenizer = pickle.load(handle)
    return tokenizer