NLP, Interpretability, Machine Learning, Pytorch, Captum.
their word vectors. We can only do this operation for one class at a time. Here, we will pick the positive class, so that we can see which part of the sentence increases or decreases the “positivity” score. Here is how to do it using Captum: First, you need to get the embedding layer of your model,