import pickle


def load_tfidf(vectorizer_path: str, wm_path: str):
    """Loads the stored TF-IDF objects

    Args:
        vectorizer_path (str): Path to the vectorizer .pickle file
        wm_path (str): Path to the word model .pickle file

    Returns:
        tuple: A tuple of the tfidfvectorizer and tfidf_wm objects
    """

    tfidfvectorizer = pickle.load(open(vectorizer_path, "rb"))
    tfidf_wm = pickle.load(open(wm_path, "rb"))
    return tfidfvectorizer, tfidf_wm