Aspect-level-sentiment icon indicating copy to clipboard operation
Aspect-level-sentiment copied to clipboard

Predicting output for new sentences with the new model

Open Arjunsankarlal opened this issue 7 years ago • 2 comments

Hi, I tried retraining the model, it went on training and showed the loss during every epoch but at the end of the training it didn't save anything (Model or Word vector file), which I could use for further predictions. Also is there a way to use model and find the sentiment of the input sentence?

Arjunsankarlal avatar Sep 28 '18 12:09 Arjunsankarlal

The current code print the metrics and losses of train, dev, and test sets at the end of each epoch. If you want to test on other datasets , you need to save the model which the current code dose not support. But you can simply follow the instruction of saving models in Keras and add this part by yourself. Then you can reload the saved model, and use it to make predictions on new instances.

ruidan avatar Sep 30 '18 02:09 ruidan

Thanks for the information @ruidan. Well how to predict the output of some sentence with the current pretrained model that is available?

Arjunsankarlal avatar Oct 01 '18 09:10 Arjunsankarlal