I’m new to AllenNLP and just built a text classifier using the text_classification_json dataset reader and basic_classifier model. I loved the Interpret and Attack demo for Sentiment Analysis and would love to use them to better understand my own model. I’ve looked over the demo code and tried to replicate what was done for the Sentiment Analysis example but, unfortunately, haven’t been able to work for my model so far.
Using the following code, I can get results from interpreter for the demo Sentiment Analysis model with GloVe embeddings . However, the exact same code returns nothing for the interpreter with my own model, though up to prediction works fine.
Does anyone have any idea what I might be doing wrong or suggestions for what I could try ? Thanks in advance for your time !