© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
P. MishraPractical Explainable AI Using Pythonhttps://doi.org/10.1007/978-1-4842-7158-2_7

7. Explainability for NLP

Pradeepta Mishra1  
(1)
Sobha Silicon Oasis, Bangalore, Karnataka, India
 

This chapter explains the use of ELI5 and SHAP-explainable AI-based Python libraries with natural language processing (NLP) based tasks such as text classification models. The prediction decisions made by machine learning models for supervised learning tasks are of unstructured data. Text classification is a task where you need to consider text sentences or phrases as input and classify them into discrete categories. An example is news classification, where the content is ...

Get Practical Explainable AI Using Python: Artificial Intelligence Model Explanations Using Python-based Libraries, Extensions, and Frameworks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.