marcotcr / anchor

Code for "High-Precision Model-Agnostic Explanations" paper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spacy is a dependency, despite seemingly not being used or supported

tharradine opened this issue · comments

Hi,

I noticed in this comment here that Spacy support has been removed (though I could be interpreting that wrong).

Does this mean it can be removed as a dependency? If so, that would be much appreciated, as it seems to carry a lot of transient dependencies, and also being a Cython extension library only providing manylinux2014 wheels, can be difficult to install on certain platforms.

For reference, this is the dependency tree of anchor-exp 0.0.1.2. As you can see, removing spacy (if possible) would clean this up a lot.

anchor-exp 0.0.1.2 Anchor explanations for machine learning models
|-- lime *
|   |-- matplotlib *
|   |   |-- cycler >=0.10
|   |   |   `-- six *
|   |   |-- kiwisolver >=1.0.1
|   |   |-- numpy >=1.10.0
|   |   |-- pyparsing >=2.0.1,<2.0.4 || >2.0.4,<2.1.2 || >2.1.2,<2.1.6 || >2.1.6
|   |   `-- python-dateutil >=2.1
|   |       `-- six >=1.5 (circular dependency aborted here)
|   |-- numpy * (circular dependency aborted here)
|   |-- progressbar *
|   |-- scikit-image >=0.12
|   |-- scikit-learn >=0.18
|   |   |-- joblib >=0.11
|   |   |-- numpy >=1.13.3 (circular dependency aborted here)
|   |   |-- scipy >=0.19.1
|   |   |   `-- numpy >=1.14.5 (circular dependency aborted here)
|   |   `-- threadpoolctl >=2.0.0
|   `-- scipy * (circular dependency aborted here)
|-- numpy *
|-- scikit-learn >=0.22
|   |-- joblib >=0.11
|   |-- numpy >=1.13.3
|   |-- scipy >=0.19.1
|   |   `-- numpy >=1.14.5 (circular dependency aborted here)
|   `-- threadpoolctl >=2.0.0
|-- scipy *
|   `-- numpy >=1.14.5
`-- spacy *
    |-- blis >=0.4.0,<0.8.0
    |   `-- numpy >=1.15.0
    |-- catalogue >=2.0.1,<2.1.0
    |   `-- importlib-metadata >=0.20
    |       |-- typing-extensions >=3.6.4
    |       `-- zipp >=0.5
    |-- cymem >=2.0.2,<2.1.0
    |-- importlib-metadata >=0.20 (circular dependency aborted here)
    |-- jinja2 *
    |   `-- markupsafe >=0.23
    |-- murmurhash >=0.28.0,<1.1.0
    |-- numpy >=1.15.0 (circular dependency aborted here)
    |-- packaging >=20.0
    |   `-- pyparsing >=2.0.2
    |-- pathy *
    |   |-- dataclasses >=0.6,<1.0
    |   |-- smart-open >=2.2.0,<4.0.0
    |   |   `-- requests *
    |   |       |-- certifi >=2017.4.17
    |   |       |-- chardet >=3.0.2,<4
    |   |       |-- idna >=2.5,<3
    |   |       `-- urllib3 >=1.21.1,<1.25.0 || >1.25.0,<1.25.1 || >1.25.1,<1.26
    |   `-- typer >=0.3.0,<1.0.0
    |       `-- click >=7.1.1,<7.2.0
    |-- preshed >=3.0.2,<3.1.0
    |   |-- cymem >=2.0.2,<2.1.0 (circular dependency aborted here)
    |   `-- murmurhash >=0.28.0,<1.1.0 (circular dependency aborted here)
    |-- pydantic >=1.7.1,<1.8.0
    |   `-- dataclasses >=0.6 (circular dependency aborted here)
    |-- requests >=2.13.0,<3.0.0 (circular dependency aborted here)
    |-- spacy-legacy >=3.0.0,<3.1.0
    |-- srsly >=2.4.0,<3.0.0
    |   `-- catalogue >=2.0.1,<2.1.0 (circular dependency aborted here)
    |-- thinc >=8.0.0,<8.1.0
    |   |-- blis >=0.4.0,<0.8.0 (circular dependency aborted here)
    |   |-- catalogue >=0.2.0,<3.0.0 (circular dependency aborted here)
    |   |-- contextvars >=2.4,<3
    |   |   `-- immutables >=0.9
    |   |-- cymem >=2.0.2,<2.1.0 (circular dependency aborted here)
    |   |-- dataclasses >=0.6,<1.0 (circular dependency aborted here)
    |   |-- murmurhash >=0.28.0,<1.1.0 (circular dependency aborted here)
    |   |-- numpy >=1.15.0 (circular dependency aborted here)
    |   |-- preshed >=3.0.2,<3.1.0 (circular dependency aborted here)
    |   |-- pydantic >=1.7.1,<1.8.0 (circular dependency aborted here)
    |   |-- srsly >=2.0.0,<3.0.0 (circular dependency aborted here)
    |   |-- typing-extensions >=3.7.4.1,<4.0.0.0 (circular dependency aborted here)
    |   `-- wasabi >=0.4.0,<1.1.0
    |-- tqdm >=4.38.0,<5.0.0
    |-- typer >=0.3.0,<0.4.0 (circular dependency aborted here)
    |-- typing-extensions >=3.7.4 (circular dependency aborted here)
    `-- wasabi >=0.8.1,<1.1.0 (circular dependency aborted here)

Sorry if I've misunderstood and spacy is infact still a dependency.

Regards,
Toby