sklearn/feature_extraction/text.py", line 232, in <lambda>AttributeError: 'numpy.ndarray' objecthas no attribute 'lower' 在这种情况下,我应该如何正确使用CountVectorizer?
941a60': [array([-0.03989978]),array([-0.06136101])]}for i,v in mydict.items():print(mydict)---------------------------------------------------------------------------
AttributeErroripython-input-398-fbc8d90525de> in <module>
()
my_object.my_new_attribute = "Hello world!"# Now it has this attribute and I can use it:
print(my_object.my_new_attribute) 此命令运行时没有错误,并打印Hello world# Verify it is indeed of the `numpy.ndarray<