cnn-text-classification-tf-chinese
cnn-text-classification-tf-chinese copied to clipboard
CNN for Chinese Text Classification in Tensorflow
你好啊, 我这边直接 `./train.py` 就报错了 会不会是版本不对? 0.9.0 >> 1.0.1 我的 tensorflow 版本为 1.0.1 python 为 2.7.13 `Traceback (most recent call last): File "./train.py", line 76, in l2_reg_lambda=FLAGS.l2_reg_lambda) File "/Users/edwardchan/projects/classification/cnn-text-classification-tf-chinese/text_cnn.py", line 75,...
你好。不好意思。初学tensorflow,copy了你的代码,在python 3.5.2上train了一下。  看了下准确率只有70%,是因为train时间的原因吗,正常要train多久?还有我看了下,这是个英文文章,你的cnn是做分词的 还是什么?请稍微花点时间帮忙解答下 。 然后我想实现,将一个照片上不同部分的defect识别出来,该用什么的tensorflow架构 cnn?有什么架构推荐下
如题,如尝试过,不知效果如何?是否会提高准召率?谢谢。
提示内存不够,但是内存很明显够呀剩下100g呢 ``` I tensorflow/core/common_runtime/bfc_allocator.cc:692] 1 Chunks of size 6652672 totalling 6.34MiB I tensorflow/core/common_runtime/bfc_allocator.cc:696] Sum Total of in-use chunks: 42.12MiB I tensorflow/core/common_runtime/bfc_allocator.cc:698] Stats: Limit: 91684864 InUse: 44171776 MaxInUse: 48052736 NumAllocs: 138...
刚入门,在Linux系统上安装驱动太麻烦,就在Windows上搞了,可是TensorFlow对Windows系统只支持python3.5版本的。。
你好, 我最近在做中文文本多分类,tensorflow刚开始学,还不太懂,如果我没搞错这个是做二分类的,请问要做多分类的话怎么修改呢?谢谢!
你好,我参考train.py的参数和cnn-text-classification-tf的train.py,eval.py 尝试写了一个eval.py,但是测试的Accuracy只有0.503125。 刚接触tensorflow,而且在测试集不同时,最大sequence_length不同,模型shape对不上,想改成placeholder失败,后来用整个训练集作为测试,得出的准确率50.3%和训练最后的98%左右差异很大。 可以提供一份对应的eval.py么?
如题,谢谢!