I have trained a sentiment analysis model using the TFIDF vectorizer features with Logistic Regression as classifier. On testing time I am inputting the string of text into TFIDF vectorizer after preprocessing and normalizing the content. However, the following error keeps appearing while using the TFIDF to transform features :
ValueError: Iterable over raw text documents expected, string object received tfidf vectorizer
The code works fine when i am using more than 1 sample for testing.
If anyone can let me know of the problem then it would be great!