Reputation: 13
I have used shap on my Bangla dataset and plotted bar graph with following code:
pred = transformers.pipeline("text-classification", model=model, tokenizer=tokenizer, device=0, return_all_scores=True)
explainer = shap.Explainer(pred)
shap_values = explainer(list(X_val)[:5])
shap.plots.bar(shap_values[:, :, '2'].mean(0))
The bangla words are not visible in the graph. How can I add Bangla Language here?
I expect some useful sugestions.
Upvotes: 0
Views: 53