Skip to content
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

TypeError: TextEncodeInput #721

Open
nipunikajain opened this issue Jul 13, 2023 · 0 comments
Open

TypeError: TextEncodeInput #721

nipunikajain opened this issue Jul 13, 2023 · 0 comments

Comments

@nipunikajain
Copy link

Hi, I am working on a multi-class classification text model.
I am trying to use LIME to intrepret the model results but getting the error like:

TypeError: TextEncodeInput must be Union[TextInputSequence, Tuple[InputSequence, InputSequence]]

This is coming when I am running the below code:

explainer = LimeTextExplainer(class_names=class_names)
exp = explainer.explain_instance(text), classifier_fn=prediction_res,
num_features = 63 , num_samples = 1000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant