I'm doing a small POC in which I've trained my Machine Learning model (Naive Bayes) and saved in ".pkl" (pickle) format. Now my next task is to develop a web application which asks the user to enter the Text for the Text classification analysis. This newly taken (from the user) "TEXT" will be the testing dataset which can be fed to the Naive Bayes model that I built in the earlier stage and make prediction.
Is there any way to convert the text (taken from the user) into numpy array and then transform this numpy array using CountVectorizer()
(which was used for training dataset) and then feed to the saved model for predictions?
I want to make an Angular application like this where the input is an image and this image can be converted into pixels.
In my case, it is plain text which needs to be transformed into NumPy array in an Angular application before I feed it to the Trained Naive Bayes Model.