-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TokenClassificationExplainer Example does not work (LIGAttributions receives unexpected keyword argument "target") #97
Comments
Hi @pharnisch thanks for flagging this with me, can I ask what version you are using. There had been some bugs with versions 0.7.0-0.7.4 with the new explainer which I have fixed now. I just ran the readme example for token classification in a fresh environment and it seems to work for me. |
Thank you for your fast response. Indeed, the problem could be due to versioning since I could only install version 0.6.0, but when I try to install the newest version, it does not work:
I have installed: When I get it correct, my Python version is not high enough to install a high enough ipython package but then the required Python version standing in the README.md is not right as I fulfill all of these four criteria. Anyway, I just created a fork and removed the ipython dependency and now it works for my case. Thanks you! :) |
Hello, I want to use the TokenClassificationExplainer. But when I run the example from your README.md, I receive the error
After debugging I saw, that the constructor of LIGAttributions receives
target=7
and in the class itself it has an argumenttarget: Optional[Union[int, Tuple, torch.Tensor, List]] = None
, so I dont understand why it struggles with this argument as it is obviously there and should also be a valid value type.Maybe someone can help me to understand/fix this. Thank you in advance.
The text was updated successfully, but these errors were encountered: