Skip to main content

ner-eval-dashboard

Dashboard for Quality-driven NER.

concept

The idea of this project is to provide a more elaborated evaluation for NER models. That way, it should be easier to fix labeling mistakes, better understand the positive and negative aspects of the trained NER model and see how it applies on unlabeled data.

progress

version 0.1.0 provides standard F1 scores for Exact Match, Type Match, and Position Match. So far only Flair models are implemented. See Issues to view planned features

installation

The ner eval dashboard can be installed via:

pip install ner-eval-dashboard==0.1

usage

The ner eval dashboard can be used on various ways: cli, api or via docker. It is important to always specify a model, a dataset and a tokenizer.

Note: To run the examples, you need to once manually download the CONLL03 dataset and put it into the {FLAIR_CACHE_ROOT}/.flair/datasets/conll_03 folder.

cli

The ner eval dashboard can be use via the command line interface:

ner_eval_dashboard [--dataset_path DATASET_PATH] [--extra_unlabeled_data EXTRA_UNLABELED_DATA] [--use USE [USE ...]] [--exclude EXCLUDE [EXCLUDE ...]] {FLAIR} predictor_name_or_path {SPACE} {RAW,COLUMN_DATASET,JSONL_DATASET,CONLL03,CONLL03_GERMAN,CONLL03_DUTCH,CONLL03_SPANISH,WNUT17,ARABIC_ANER,ARABIC_AQMAR,BASQUE,WEIBO,DANE,MOVIE_SIMPLE,MOVIE_COMPLEX,SEC_FILLINGS,RESTAURANT,STACKOVERFLOW,TWITTER
,PERSON,WEBPAGES,WNUT2020,WIKIGOLD,FINER,BIOFID,EUROPARL,LEGAL_NER,GERMEVAL,POLITICS,BUSINESS,ICELANDIC_NER,HIRONSAN,MASAKHANE,MULTI_CONER,WIKIANN,XTREME,WIKINER,SWEDISH_NER,TURKU}

For example the following can be used to evaluate the Bi-LSTM-CRF model based on Flair embeddings on CONLL03:

ner_eval_dashboard FLAIR flair/ner-english SPACE CONLL03

api

from ner_eval_dashboard.dataset.flair import FlairConll03
from ner_eval_dashboard.predictor import FlairPredictor
from ner_eval_dashboard.tokenizer import SpaceTokenizer
from ner_eval_dashboard.app import create_app

tokenizer = SpaceTokenizer()
dataset = FlairConll03(tokenizer)
predictor = FlairPredictor("flair/ner-english")

app = create_app("my-app", predictor, dataset)

app.run_server()

docker

docker images are publicly available at docker hub

docker run -it --rm -p 8050:8050 helpmefindaname/ner-eval-dashboard FLAIR flair/ner-english SPACE CONLL03

Metadata

Release files for ner-eval-dashboard 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ner-eval-dashboard 0.1.0
File Size Uploaded
ner-eval-dashboard-0.1.0.tar.gz 18.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ner-eval-dashboard 0.1.0
File Interpreter ABI Platform
ner_eval_dashboard-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 41.6 kB

Release files / ner-eval-dashboard-0.1.0.tar.gz

Download URL ner-eval-dashboard-0.1.0.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
31abf8dda996397853e7a746b4dcdb4ddbb0db665582e93efd036661cd8f1e8c
BLAKE2b-256 checksum
How to use checksums
8164fb44d37af5b28c797627e0b77235d46a4c86c6179f38c0ee78381d24f017
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / ner_eval_dashboard-0.1.0-py3-none-any.whl

Download URL ner_eval_dashboard-0.1.0-py3-none-any.whl
Size 23.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0bbfe66edbbedcbbe9a517282ac7f5c8bd7c8168ea9aae426b51b02197068139
BLAKE2b-256 checksum
How to use checksums
73309eb0ea4715cb73662eeb6980d4c1ebe349671ed514457be0a5fa88c35eca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page