Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

CHAPTER 8

Interpreting NLP Transformers

How to Run

Open "ReviewSentiment.ipynb" notebook in a local Jupyter environment or open notebook in Google Colab

When you run it locally to install the requirements, you can run chapter_setup.py from the terminal like this:

python chapter_setup.py

But you can also do it from the first cell of the notebook.

Requirements

For your reference, these are the requirements:

pandas~=1.5.3
numpy~=1.23.5
scikit-learn~=1.2.2
matplotlib~=3.7.1
seaborn~=0.12.2
scipy~=1.11.3
opencv-python~=4.5.1
torchvision~=0.16.0
torch~=2.1.0
ipython>=7.23.0
machine-learning-datasets~=0.1.23
shap~=0.42.1
rouge-score~=0.1.2
bertviz~=1.4.0 
captum~=0.6.0 
lit-nlp~=0.5.0 
transformers~=4.32.0
kaleido>=0.2.1