Skip to content

Commit 334805d

Browse files
Updating readme (#102)
* Updating readme Included a section for explainer comparisons and took out mentions of interpret-text-contrib * added nbview links to sample notebooks in comparison chart * take out copyright microsoft in nb classical text explainer nb * take out copyright microsoft in nb introspective rationale explainer nb * take out copyright microsoft in nb Unified information explainer nb * Update README.md * update the comparison chart Co-authored-by: eedeleon <31962564+eedeleon@users.noreply.github.com>
1 parent 6609c41 commit 334805d

File tree

4 files changed

+21
-18
lines changed

4 files changed

+21
-18
lines changed

README.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11

2-
# Interpret-Text SDK
3-
Interpret Text builds on [Interpret](https://github.com/interpretml/interpret), an open source python package for training interpretable models and helping to explain blackbox machine learning systems. We have added extensions to support text models.
2+
# Interpret-Text - Alpha Release
3+
Interpret-Text builds on [Interpret](https://github.com/interpretml/interpret), an open source python package for training interpretable models and helping to explain blackbox machine learning systems. We have added extensions to support text models.
44

5-
This repository contains an SDK and Jupyter notebooks with examples to showcase its use.
5+
This repository contains an SDK and example Jupyter notebooks to showcase its use.
66

77
# Contents
88

99
- [Overview of Interpret-Text](#overview)
1010
- [Target Audience](#target-audience)
1111
- [Getting Started](#getting-started)
12-
- [Supported Models and NLP Scenarios](#models)
12+
- [Supported NLP Scenarios](#models)
1313
- [Supported Explainers](#explainers)
1414
- [Use Interpret-Text](#use)
1515
- [Contributing](#contrib)
@@ -48,8 +48,8 @@ To setup on your local machine:
4848

4949
Clone and cd into the repository
5050
```
51-
git clone https://github.com/interpretml/interpret-text-contrib.git
52-
cd interpret-text-contrib
51+
git clone https://github.com/interpretml/interpret-text.git
52+
cd interpret-text
5353
```
5454
</details>
5555

@@ -85,7 +85,7 @@ You can install the package from source or from pipy.
8585

8686
<details><summary><strong><em>3.1 From source (developers): </strong></em></summary>
8787

88-
Run the below commands from ```interpret-text-contrib/python```
88+
Run the below commands from ```interpret-text/python```
8989

9090
```
9191
pip install -e .
@@ -94,11 +94,10 @@ Run the below commands from ```interpret-text-contrib/python```
9494
```
9595
</details>
9696

97-
<details><summary><strong><em>3.2 From pipy (package users): </strong></em></summary>
97+
<details><summary><strong><em>3.2 From github (package users): </strong></em></summary>
9898

9999
```
100-
pip install keyring artifacts-keyring
101-
pip install interpret-text --index-url "https://pkgs.dev.azure.com/responsibleai/_packaging/responsibleai/pypi/simple" (placehodler)
100+
pip install --upgrade git+https://github.com/interpretml/interpret-text.git#subdirectory=python
102101
```
103102
</details>
104103

@@ -118,7 +117,7 @@ Install and run Jupyter Notebook
118117

119118
# Supported NLP Scenarios
120119

121-
Currently this repository provides support for the text classification scenario.
120+
Currently this repository only provides support for the text classification scenario.
122121
# <a name="explainers"></a>
123122

124123
# Supported Explainers
@@ -129,6 +128,15 @@ The following is a list of the explainers available in this repository:
129128

130129
* [Introspective Rationale Explainer](http://people.csail.mit.edu/tommi/papers/YCZJ_EMNLP2019.pdf)
131130

131+
## Explanation Method Comparison Chart
132+
| | Classical Text Explainer | Unified Information Explainer | Introspective Rationale Explainer |
133+
|---------------|---------|:-------------------:|:----------------------------:|
134+
| Input model support | Scikit-learn linear models and tree-based models | PyTorch | PyTorch |
135+
| Explain BERT | No | Yes | Yes |
136+
| Explain RNN | No | No | Yes |
137+
| NLP pipeline support | Handles text pre-processing, encoding, training, hyperparameter tuning | Uses BERT tokenizer however user needs to supply trained/fine-tuned BERT model, and samples of trained data | Generator and predictor modules handle the required text pre-processing.
138+
| Sample notebook | [Classical Text Explainer Sample Notebook](https://nbviewer.jupyter.org/github/interpretml/interpret-text/blob/master/notebooks/text_classification/text_classification_classical_text_explainer.ipynb) | [Unified Information Explainer Sample Notebook](https://nbviewer.jupyter.org/github/interpretml/interpret-text/blob/master/notebooks/text_classification/text_classification_unified_information_explainer.ipynb) | [Introspective Rationale Explainer Sample Notebook](https://nbviewer.jupyter.org/github/interpretml/interpret-text/blob/master/notebooks/text_classification/text_classification_introspective_rationale_explainer.ipynb)|
139+
132140
## Classical Text Explainer
133141

134142
The ClassicalTextExplainer extends text interpretability to classical machine learning models.
@@ -290,7 +298,7 @@ The dashboard visualizes the local feature importances of the document with an i
290298
<a name="contrib"></a>
291299

292300
# Contributing
293-
This project welcomes contributions and suggestions. Most contributions require you to agree to the Github Developer Certificate of Origin, DCO. For details, please visit [https://probot.github.io/apps/dco/](https://probot.github.io/apps/dco/).
301+
We welcome contributions and suggestions! Most contributions require you to agree to the Github Developer Certificate of Origin, DCO. For details, please visit [https://probot.github.io/apps/dco/](https://probot.github.io/apps/dco/).
294302

295303
The Developer Certificate of Origin (DCO) is a lightweight way for contributors to certify that they wrote or otherwise have the right to submit the code they are contributing to the project. Here is the full text of the DCO, reformatted for readability:
296304
```
@@ -308,7 +316,7 @@ $ git commit -s -m 'This is my commit message'
308316
```
309317
When you submit a pull request, a DCO bot will automatically determine whether you need to certify. Simply follow the instructions provided by the bot.
310318

311-
<a name=Code></a>
319+
<a name=code></a>
312320
# Code of Conduct
313321

314322
This project has adopted the his project has adopted the [GitHub Community Guidelines](https://help.github.com/en/github/site-policy/github-community-guidelines).

notebooks/text_classification/text_classification_classical_text_explainer.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"*Copyright (c) Microsoft Corporation. All rights reserved.* \n",
87
"*Licensed under the MIT License.*"
98
]
109
},

notebooks/text_classification/text_classification_introspective_rationale_explainer.ipynb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"*Copyright (c) Microsoft Corporation. All rights reserved.*\n",
8-
"\n",
97
"*Licensed under the MIT License.*\n",
108
"\n",
119
"# Text Classification of SST-2 Sentences using a 3-Player Introspective Model"

notebooks/text_classification/text_classification_unified_information_explainer.ipynb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"*Copyright (c) Microsoft Corporation. All rights reserved.*\n",
8-
"\n",
97
"*Licensed under the MIT License.*\n",
108
"\n",
119
"# Text Classification of MultiNLI Sentences using BERT"

0 commit comments

Comments
 (0)