特征抽取 一个文本转换小实例 # 导入包(feature_extraction是特征抽取的API) from sklearn.feature_extraction.text import CountVectorizer # 实例化CountVectorizer vector = CountVectorizer() # 调用fit_transform输入并转换数据 res = vector.fit_transform(["河南","福建","life is short,i like python"]) print(res.toar...