sklearn classifier get ValueError: bad input shape
问题 I have a csv, struct is CAT1,CAT2,TITLE,URL,CONTENT , CAT1, CAT2, TITLE ,CONTENT are in chinese. I want train LinearSVC or MultinomialNB with X(TITLE) and feature(CAT1,CAT2), both get this error. below is my code: PS: I write below code through this example scikit-learn text_analytics import numpy as np import csv from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.svm import LinearSVC from sklearn.pipeline import Pipeline label_list = [] def label_map_target(label): '''