hila-chefer / Transformer-Explainability

[CVPR 2021] Official PyTorch implementation for Transformer Interpretability Beyond Attention Visualization, a novel method to visualize classifications by Transformer based networks.
MIT License
1.75k stars 232 forks source link

bert colab does not work #61

Open leonorsilva opened 1 year ago

leonorsilva commented 1 year ago

when I run the code I get an error on the explanation generator. How can I solve it?

Nanuion commented 8 months ago

Does anyone know how the pos and neg metrics mentioned in the article are implemented in code?