SDK for explaining text-based ML models with a visualization dashboard
Top 70.5% on sourcepulse
Interpret-Text is an open-source Python library designed to provide state-of-the-art explainability techniques for text-based machine learning models. It offers a unified API across various explainers and an interactive dashboard for visualizing results, targeting data scientists, developers, and researchers seeking to understand, audit, and deploy transparent NLP models.
How It Works
Interpret-Text integrates multiple community-developed interpretability methods, offering a common API for comparative analysis. It supports both classical ML models (via bag-of-words and logistic regression defaults) and deep learning models like BERT and RNNs. The library handles text preprocessing and provides explainers that can operate globally or locally, with a focus on generating rationales and understanding feature importance for text classification and generative tasks.
Quick Start & Requirements
pip install -e .
in python/
) or PyPI (pip install interpret-text
).Highlighted Details
Maintenance & Community
The project is part of the interpretml initiative. Contributions are welcome via pull requests, requiring agreement with the GitHub Developer Certificate of Origin. Security issues should be reported to Microsoft Security Response Center (MSRC).
Licensing & Compatibility
The repository does not explicitly state a license in the README. Compatibility for commercial use or closed-source linking is not specified.
Limitations & Caveats
The library is currently in an "Alpha Release" state. The README indicates that some explainers have specific model requirements (e.g., UnifiedInformationExplainer only supports BERT, Likelihood Explainer requires models providing log probabilities).
1 year ago
1+ week