Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#Loading model and vocab
print("Loading pre-trained model")
vocabulary_to_load = pickle.load(open("vocab.pickle", 'rb'))
count_vect = CountVectorizer(vocabulary=vocabulary_to_load)
load_model = pickle.load(open("model.pickle", 'rb'))count_vect._validate_vocabulary()
tfidf_transformer = tf_idf(categories)[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment