New answers tagged


Your question leaves a lot unexplained, but the error you're receiving probably came from the last line vectorized_text = features.transform("Heathcare is good").toarray(). The variable features is itself an array (it came from features = ... .toarray()). I'm assuming you meant to replace it with vectorized_text = tfidf.transform("Heathcare ...

Top 50 recent answers are included