Tanjim Taharat Aurpa
Tanjim Taharat Aurpa

Reputation: 13

How to write Bangla in shap graph

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 output is: enter image description here

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

Answers (0)

Related Questions