python3.6/site-packages/keras_preprocessing/text.py", line 43, in text_to_word_sequence AttributeError: 'spacy.tokens.doc.Doc' object has no attribute 'lower'
我得到了如下错误:-------------------------------------------------------------------------- AttributeErrorinto lemma, part of speech and synset number 1230 synset_index = int(synset_in
我知道,我可能需要改变优化器,损失,度量和可能更多的属性,如果有人对此有任何见解,请分享。tensorflow_core\python\keras\utils\conv_utils.py", line 191, in normalize_data_formatAttributeError: 'int' object has no attribute 'lower' \
site-packages\sklearn\feature_extraction\text.py", line 195, in <lambda>AttributeError: '_io.TextIOWrapper' object has no attribute 'lower'
file1.txt和file2.txt是输入文本文件。
我正在尝试使用支持向量机进行预测,但我收到了错误在执行代码的text_clf.fitsite-packages\sklearn\feature_extraction\text.py", line 232, in <lambda>
return lambda x: strip_accents(x.lower