a little bit confuse,
my code error when i try to use svm.SVC(kernel=’linear’) library of sklearn. i can train the model but when i try to test model with new input data texts, error coming up

ValueError: cannot use sparse input in ‘SVC’ trained on dense data

can you help me to understand this?

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store