Explainable Leaderboards for Natural Language Processing
Project description
ExplainaBoard: An Explainable Leaderboard for NLP
Introduction | Web Tool | API Tool | Download | Paper | Video | Bib
What is ExplainaBoard?
When developing a natural language processing (NLP or AI) system, often one of the hardest things is to understand where your system is working and where it is failing, and deciding what to do next. ExplainaBoard is a tool that inspects your system outputs, identifies what is working and what is not working, and helps inspire you with ideas of where to go next.
It offers a number of different ways with which you can evaluate and understand your data:
- Single-system Analysis: What is a system good or bad at?
- Pairwise Analysis: Where is one system better (worse) than another?
- Data Bias Analysis: What are the characteristics of different evaluated datasets?
- Common Errors: What are common mistakes that top-5 systems made?
- Fine-grained Error Analysis: where do errors occur?
- System Combination: Is there potential complementarity between different systems?
How do you get started?
- Browse Outputs Online: We provide an online interface where you can browse and understand outputs from various state-of-the-art systems.
- Upload Your Own Outputs: You can also upload your own system outputs through the online interace, and we will process them so you can view them alongside other systems.
- Run Your Own Analyses Offline: You can follow the installation instructions below to run analyses on your own system data offline. We also plan to support command-line upload to the web interface soon!
Web-based Toolkit
We have deployed ExplainaBoard as a Web toolkit, which includes 9 NLP tasks, 40 datasets and 300 systems. Detailed information is as follows.
Quick Installation
Method 1: Simple installation from PyPI (Python 3 only)
pip install explainaboard
python -m spacy download en_core_web_sm # if you plan to use the TextClassificationProcessor
Method 2: Install from the source and develop locally (Python 3 only)
# Clone current repo
git clone https://github.com/neulab/ExplainaBoard.git
cd ExplainaBoard
# Install the package
pip install .
Then, you can run following examples via bash
Example for CLI
- text-classification:
explainaboard --task text-classification --system_outputs ./data/system_outputs/sst2/sst2-lstm.tsv
See detailed description and more supported tasks.
Example for Python SDK
from explainaboard import TaskType, get_loader, get_processor
path_data = "./explainaboard/tests/artifacts/test-summ.tsv"
loader = get_loader(TaskType.summarization, data = path_data)
data = loader.load()
processor = get_processor(TaskType.summarization, data = data)
analysis = processor.process()
analysis.write_to_directory("./")
Acknowledgement
We thanks all authors who share their system outputs with us: Ikuya Yamada, Stefan Schweter, Colin Raffel, Yang Liu, Li Dong. We also thank Vijay Viswanathan, Yiran Chen, Hiroaki Hayashi for useful discussion and feedback about ExplainaBoard.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file explainaboard-0.6.5.tar.gz
.
File metadata
- Download URL: explainaboard-0.6.5.tar.gz
- Upload date:
- Size: 522.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1c47616b0da1468b0bb326c1f38968e3d9ed393bb24c0f0d571d0f8f43664d1 |
|
MD5 | 9de31d4792a47d65f3804d8e5873a49c |
|
BLAKE2b-256 | 6d1626867a48cef04f3acd8e9d69319eaaef3bba1640b6f81325edc18b6da10e |
File details
Details for the file explainaboard-0.6.5-py2.py3-none-any.whl
.
File metadata
- Download URL: explainaboard-0.6.5-py2.py3-none-any.whl
- Upload date:
- Size: 555.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 924ce6b721ba6705202290c27c3bfde1b7e21870ca54d6ee7fdd20ea3473759e |
|
MD5 | 15586bf70f149c689deb5da12ed23a40 |
|
BLAKE2b-256 | acf0295353852b346f5a0abd9c3b3e315975013e043e294d789c51ba9f353b36 |