dennybritz / cnn-text-classification-tf

Convolutional Neural Network for Text Classification in Tensorflow
Apache License 2.0
5.65k stars 2.77k forks source link

how to predict for one sentence? #148

Open prateeknepaliya09 opened 6 years ago

bibhu107 commented 6 years ago

Delt all your test data. And just keep one single line.

Nadedic commented 6 years ago

I've trained till I've reached an accuracy of 1, almost stable. How can I evaluate or test it? How will run eval file exactly? Also isn't testing on the same training data might cause overfit?

wangtao-humanitarian commented 6 years ago

same question

bibhu107 commented 6 years ago

@Nadedic Yes! We don't test with same data. That wont produce the exact accuracy of the model. If you have trained then you will be having a text file having word->ID use it and make an embedding layer then see eval.py .