- Add token attributions visualization; kudos to @TomPham97 π
output.token_attributions.plot(normalize=True)
output.token_attributions
is now a listTokenAttributions
object andoutput.pixel_attributions
is now a np.ndarrayPixelAttributions
object (both compatible with previous version)output.normalized_token_attributions
andoutput.normalized_pixel_attributions
now raise a DeprecationWarning (but both still work). Useoutput.token_attributions.normalized
andoutput.pixel_attributions.normalized
instead.