yoonkim / CNN_sentence

CNNs for sentence classification
2.05k stars 826 forks source link

How to get the sentence label? #26

Open jiangyt2112 opened 8 years ago

jiangyt2112 commented 8 years ago

How to get the sentence label? i cont get label from theano.var.tensorvaribal ,what should i do to solve this problem

txHe commented 7 years ago

Hi , have you solved this problem ? I have meet the same situation.

jiangyt2112 commented 7 years ago

test_layer1input = T.concatenate(test_predlayers, 1) test_ypred = classifier.predict(test_layer1input) test_label=theano.function([x],test_ypred, allow_input_downcast = True) run the three line,you had better see the reference of theano

txHe commented 7 years ago

Okay , Thanks a lot.