I will try to be clear as possible in my question:
I trained a logistic regression model with a collected data of trusted tweets and also fake tweets related to covid-19.
Now I want to be able to predict data individually. I go and select the sample data and I want to get the result for that specific sample.
input_ = df_2['Tweets'][3]
input_
When running that I get:
'Warmer Weather May Slow, but Not Halt, Coronavirus'
Trying to tranform that sentence:
input_transformed = vectorization.fit_transform(input_)
ValueError: Iterable over raw text documents expected, string object received.
I does not accept strings, is there a way of vectorising strings only? or maybe there is another way when it comes to 1 string sample?
At the end of the notebook you can see what I am trying to do.