rucJuanLi
rucJuanLi
output_conv=self.conv_layer_with_recurrent_structure() #shape:[None,sentence_length,embed_size*3] File "/home/juan_li/work_bishe/text_classification-master/text_classification-master/a04_TextRCNN/p71_TextRCNN_model_hg.py", line 122, in conv_layer_with_recurrent_structure representation=tf.concat([context_left_list[index],current_embedding_word,context_right_list[index]],axis=1) File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/ops/array_ops.py", line 1099, in concat return gen_array_ops._concat_v2(values=values, axis=axis, name=name) File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/ops/gen_array_ops.py", line 706, in _concat_v2 "ConcatV2", values=values, axis=axis, name=name) File...
When we run p7_textcnn_train.py,We set a batch size to train the model, and we find it work well,but we it go to test process--> do_eval() function, there is a bug:...
Traceback (most recent call last): File "textClassifierRNN_ga.py", line 187, in create_model_gru_attention(texts_train_index,texts_test_index,label_train,label_test,word_index,embeddings) File "textClassifierRNN_ga.py", line 174, in create_model_gru_attention model.compile(loss='categorical_crossentropy',optimizer='rmsprop',metrics=['accuracy']) File "/usr/local/lib/python3.4/dist-packages/keras/engine/training.py", line 915, in compile sample_weight, mask) File "/usr/local/lib/python3.4/dist-packages/keras/engine/training.py", line 436,...