shiyybua / NER

基于tensorflow深度学习的中文的命名实体识别
1.05k stars 400 forks source link

预测的时候报错 #57

Open zhang2010hao opened 6 years ago

zhang2010hao commented 6 years ago

TensorFlow.python.framework.errors_impl.InvalidArgumentErrot: indices.shape[-1] must be <= params.rank, but saw indices shape:[?, 11] and params shape:[1, 16] for 'ner/cond/GatherNd' with input shapes: [1, 16], [? 11]

错误的是在rnn.py的line65行,调用tf.contrib.crf.cfr_log_likelihoood时爆出的,能帮忙看下吗

MASTERPlECE commented 6 years ago

TensorFlow.python.framework.errors_impl.InvalidArgumentErrot: indices.shape[-1] must be <= params.rank, but saw indices shape:[?, 11] and params shape:[1, 16] for 'ner/cond/GatherNd' with input shapes: [1, 16], [? 11]

错误的是在rnn.py的line65行,调用tf.contrib.crf.cfr_log_likelihoood时爆出的,能帮忙看下吗

看看这个https://github.com/shiyybua/NER/issues/8