cdpierse / transformers-interpret

Model explainability that works seamlessly with 🤗 transformers. Explain your transformers model in just 2 lines of code.
Apache License 2.0
1.27k stars 96 forks source link

What algorithm is used to visualize text in SequenceClassificationExplainer #103

Open WenxiongLiao opened 2 years ago

WenxiongLiao commented 2 years ago

transformers-interpret is a good toolkit, but I want to know more about the algorithm involved in transformers-interpret. I'm curious about the method SequenceClassificationExplainer, this method directly calls captum.attr.visualization. But I want to know more about the algorithm involved in visualize text, what algorithms used to visualize text?