aneesh-joshi / LSTM_POS_Tagger

A simple POS Tagger made using a Bidirectional LSTM using keras trained on the Brown Corpus
34 stars 19 forks source link

Model.evaluate() vs model.predict() #18

Open sumanyu-21 opened 4 years ago

sumanyu-21 commented 4 years ago

I was trying to understand the POS tagging using this code. During the evaluation, when I used model.evaluate(), I am getting the expected accuracy but when I use model.predict and then take argmax to decide the label, the accuracy drops down to 50%. What could be the reason behind this.