cdpierse / transformers-interpret

Model explainability that works seamlessly with 🤗 transformers. Explain your transformers model in just 2 lines of code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for list of sentences

aka2910 opened this issue · comments

The current version does not support function for getting attributions for list of sentences in SequenceClassificationExplainer . Is this feature in process of development? If not then I would like to work upon this.

I support this and also can help. Now I have to write my own wrapper around it. I would like to visualize multiple sequences in an HTML table as well.

Hi @aka2910 and @ondrejsotolar thank you both for your interest in adding this feature, it would be great to have a batch version of this particular explainer. For visualization, I would recommend checking out how I do the visualization for the TokenClassificationExplainer and the MultiLabelClassificationExplainer as in both of those instances I create a table of visualizations rather than a single one. Would be happy to give any input on a PR for this if you are interested.