gianluigilopardo / anchors_vs_lime_text

A Comparison of Feature Importance and Rule Extraction for Interpretability on Text Data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comparing Anchors and LIME for Text Data

Requirements

Some non-standard packages need to be installed:

  • anchor (repo from the authors)
pip install anchor-exp
  • spacy and a pretrained model:
pip install spacy
python -m spacy download en_core_web_sm

Use

To generate figures for the experiments, simply do

git clone https://github.com/gianluigilopardo/anchors_vs_lime_text
python main.py

About

A Comparison of Feature Importance and Rule Extraction for Interpretability on Text Data


Languages

Language:Python 89.7%Language:Jupyter Notebook 10.3%