Extract most important words from model

Hi,

Yes that’s possible. There are some cool libraries out there that can be used to do that:

I believe it requires some tweaks to make it work on Transformer-based models, but I did this myself some time last year, so it’s definitely possible.

Edit: this Github thread might be helpful.

2 Likes