-
Hi,
Thanks for the excellent piece of work . But I'm getting the following error while I try to initiate the function call in this line . Not sure whats wrong .
Message : Expected int32 but got…
-
File "/home/wt/桌面/class/text_classification-master/a02_TextCNN/other_experiement/data_util_zhihu.py", line 28, in create_voabulary
model=word2vec.load(word2vec_model_path,kind='bin')
File "/us…
-
-
-
Dear author, your paper is very creative and I am very interested in it. I am preparing to reproduce your experiment, but the code you provided does not seem to explain how to use the SentiCap dataset…
-
您好,
感谢您提供这么好的学习资料!我用了ELMO+TextCNN的组合跑了IMDB数据集,得到了下面的结果,想问一下,最后的准确率的计算是应该只算最后一个epoch的accuracy还是把所有epoch的accuracy取平均?另外这个accuracy应该是测试集上的accuracy是吗?因为运行完模型以后没有保存训练的模型,如果能把训练的模型保存下来就更好了。
![微信截图_2020070…
-
line 137: predict = []
line 145: predict += logits[0]
会报错:operands could not be broadcast together with shapes (0,) (n,)
(n是label个数)
原因应该是在循环中空数组和预测值logits的第0维相加出现了维度问题。
我改成了 line 137: predic…
-
Hi @vruusmann ,
I have a tensorflow model which needs to be converted to a pmml. Once I tried that, an exception has thrown. The log is shown below.
> INFO: Parsing SavedModel..
2018-07-13 12:2…
-
-
ValueError: Error when checking input: expected input_22 to have 2 dimensions, but got array with shape (9598, 61, 300)
根据你的textcnn,在model.fit传入参数时,由于我的train_data是三维的[N, max_len, w2v_dim],而你的是二维的,产生了…