Tensorflow-Python-keras版本匹配
代码运行问题
操作:机器学习中对应用于神经网络的分类文本分词结果(allcutwords)进行编码并构建词典时,运行以下代码:
from keras.preprocessing.text import Tokenizer
tokenizer = Tokenizer()
tokenizer.fit_on_texts(allcutwords)
d_allcutwords = tokenizer.word_index
print(d_allcutwords)
问题:代码未报错,但并未运行,且没有输出结果就结束了运行