Skip to main content

Extension of text_explainability for sensitivity testing (robustness, fairness)

Project description

T_xt Sensitivity logo

PyPI Python_version Build_passing License Docs_passing


Extension of text_explainability for sensitivity testing (robustness, fairness).

Marcel Robeer, 2021

Installation

Method Instructions
pip Install from PyPI via pip3 install text_sensitivity.
Local Clone this repository and install via pip3 install -e . or locally run python3 setup.py install.

Documentation

Full documentation of the latest version is provided at https://marcelrobeer.github.io/text_sensitivity/.

Example usage

See example_usage.md to see an example of how the package can be used, or run the lines in example_usage.py to do explore it interactively.

Releases

text_explainability is officially released through PyPI.

See CHANGELOG.md for a full overview of the changes for each version.

Citation

@misc{text_sensitivity,
  title = {Python package text_sensitivity},
  author = {Marcel Robeer and Elize Herrewijnen},
  howpublished = {https://git.science.uu.nl/m.j.robeer/text_sensitivity},
  year = {2021}
}

Maintenance

Contributors

Todo

Tasks yet to be done:

  • Word-level perturbations
  • Add fairness-specific metrics:
    • Subgroup fairness
    • Counterfactual fairness
  • Tests
    • Add tests for data generation
    • Add tests for perturbations
    • Add tests for test-schemes
  • Add visualization ability

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

text_sensitivity-0.1.4.tar.gz (16.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

text_sensitivity-0.1.4-py3.9.egg (31.5 kB view details)

Uploaded Egg

text_sensitivity-0.1.4-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file text_sensitivity-0.1.4.tar.gz.

File metadata

  • Download URL: text_sensitivity-0.1.4.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.6

File hashes

Hashes for text_sensitivity-0.1.4.tar.gz
Algorithm Hash digest
SHA256 bb937f2603949cdc6bffbcfed68f70be3484ca8e8f42f8a3311e9d98ef66e9be
MD5 2ecd9b9bc2984503faab1b92382a2276
BLAKE2b-256 00cb85ef4199b329d5441a0ca78b014ce7c9e0c230e95ff09f9465dd86273fe1

See more details on using hashes here.

File details

Details for the file text_sensitivity-0.1.4-py3.9.egg.

File metadata

  • Download URL: text_sensitivity-0.1.4-py3.9.egg
  • Upload date:
  • Size: 31.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.6

File hashes

Hashes for text_sensitivity-0.1.4-py3.9.egg
Algorithm Hash digest
SHA256 d7ce232104aae0f287eaaf51e0c7742b6f00e48467adb0e33b9b64ce28096a0a
MD5 3b317eae9baadab230a257e3c4406578
BLAKE2b-256 ad1d08e989779299a3583f93a6f3fb2fdf5adb25ec6aa43e9dfda020eca4c405

See more details on using hashes here.

File details

Details for the file text_sensitivity-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: text_sensitivity-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.6

File hashes

Hashes for text_sensitivity-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9e1fa5d3135e442bbdebba1912083e911372cc5d535904ef6bfcccb6afdc968d
MD5 9336958af30bca0fb2ac74c16cadba38
BLAKE2b-256 b2304e6fd7d06e910b4da661d8aae1eab8fc1bf090b44b7618ab83c519c9e8aa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page