Python
ov大鱼vo
我们的远方是星辰大海
展开
-
nbconvert AttributeError: module ‘mistune‘ has no attribute ‘BlockGrammar‘
nbconvert AttributeError: module 'mistune' has no attribute 'BlockGrammar'转载 2022-10-30 23:15:44 · 2648 阅读 · 2 评论 -
AttributeError: module 'tensorflow' has no attribute 'placeholder'等问题的解决
参考import tensorflow as tfprint(tf.__path__)查看tf版本。我的是因为在tf2下使用了tf1的API。解决方式:使用import tensorflow.compat.v1 as tftf.disable_v2_behavior()替换import tensorflow as tf...原创 2019-06-25 10:26:00 · 124005 阅读 · 77 评论 -
TypeError: doc2bow expects an array of unicode tokens on input, not a single string
构造词典时,输入的不应为原始文档集合,而是字符数组的数组。import nltkfrom gensim.models.ldamulticore import LdaModelfrom gensim.corpora.dictionary import Dictionaryfrom gensim.test.utils import datapathclass LDA(): ...原创 2019-07-04 16:22:55 · 4757 阅读 · 0 评论