transformers-interpret icon indicating copy to clipboard operation
transformers-interpret copied to clipboard

Support for list of sentences

Open aka2910 opened this issue 2 years ago • 2 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.

aka2910 avatar Jun 07 '22 10:06 aka2910

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.

ondrejsotolar avatar Sep 08 '22 13:09 ondrejsotolar

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.

cdpierse avatar Sep 08 '22 13:09 cdpierse