Skip to main content

It's pronounced accura-see. For spaCy models.

Project description

spacy-report

The goal of this project is to generate reports for spaCy models.

what it does

The goal of spacy-report is to offer static reports for spaCy models that help users make better decisions on how the models can be used. At the moment the project supports interactive views for threshold values for classification.

Here's a preview of what to expect:

There are two kinds of charts.

  1. The first kind is a density chart. This chart shows the distribution of confidence scores for a given class. The blue area represents documents that had the tag assigned to the class. The orange area represents documents that didn't.
  2. The second kind is a line chart that demonstrates the accuracy, precision and recall values for a given confidence threshold. It's an interactive chart and you can explore the values by hovering over the chart.

install

You can install spacy_report directly with pip.

python -m pip install spacy_report

Alternatively, you can also install the most version from git.

python -m pip install "spacy_report @ git+https://github.com/koaning/spacy_report.git"

usage

The accuracy project provides a command line interface that can generate reports. The full CLI can also be explored via the --help flag.

> python -m spacy report --help
Usage: python -m spacy report [OPTIONS] COMMAND [ARGS]...

  Generate reports for spaCy models.

Options:
  --help  Show this message and exit.

Commands:
  textcat  Generate a report for textcat models.
  version  Print the version of spacy_report.

textcat report

To generate reports for textcat models, you can use the textcat sub-command.

> python -m spacy report textcat training/model-best/ corpus/train.spacy corpus/dev.spacy

Loading model at training/model-best
Running model on training data...
Running model on development data...
Generating Charts ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
Done! You can view the report via;

python -m http.server --directory reports PORT 

This will generate a folder, "reports" by default, that contains a full dashboard for the trained spaCy model found in training/model-best.

The CLI has a few configurable settings:

Arguments:
  [MODEL_PATH]  Path to spaCy model
  [TRAIN_PATH]  Path to training data
  [DEV_PATH]    Path to development data
  [FOLDER_OUT]  Output folder for reports  [default: reports]

Options:
  --classes TEXT  Comma-separated string of classes to use
  --help          Show this message and exit.

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

spacy_report-0.1.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

spacy_report-0.1.1-py2.py3-none-any.whl (12.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file spacy_report-0.1.1.tar.gz.

File metadata

  • Download URL: spacy_report-0.1.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.6

File hashes

Hashes for spacy_report-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a60641329b387aa541fd239d7dd223471aa333751a177b00756385cf43fb7ea8
MD5 417e8cb6ef2a453ca0f296ef865020cf
BLAKE2b-256 11de57ae6892927a298bf05fb7bb5cd870cac14f68540a2292d5b0a68a8e23b5

See more details on using hashes here.

File details

Details for the file spacy_report-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for spacy_report-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 aba34d8afa14420cbdd5fb44fe0d0feee6273f845132ecc6391a2eb3cece123a
MD5 6109c3ab7f72b822cfbcde0223f7763a
BLAKE2b-256 4258612037e10a31d089c242f6c21158733a3c8b580761478cedc49942035728

See more details on using hashes here.

Supported by

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