Skip to content
Back to skills

Weakly Supervised Ner Eval

ASecurity

This evaluation probes a model's ability to perform named entity recognition under weak supervision, where training labels are noisy and derived from multiple distant supervision sources. It measures how well the model can denoise these labels and generalize entity patterns across general, biomedical, and review domains. Use when the user wants to benchmark on CoNLL 2003, LaptopReview, NCBI-Disease, BC5CDR, or asks about evaluating this task. Reports entity-level F1.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 11, 2026
researchpythongoperformance

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill weakly-supervised-ner-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Weakly Supervised Ner Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Weakly Supervised Ner Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-weakly-supervised-ner-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-weakly-supervised-ner-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: weakly-supervised-ner-eval
description: This evaluation probes a model's ability to perform named entity recognition under weak supervision, where training labels are noisy and derived from multiple distant supervision sources. It measures how well the model can denoise these labels and generalize entity patterns across general, biomedical, and review domains. Use when the user wants to benchmark on CoNLL 2003, LaptopReview, NCBI-Disease, BC5CDR, or asks about evaluating this task. Reports entity-level F1.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2105.12848
  bibtex_key: [REDACTED]
  confidence: high
---

# weakly-supervised-ner-eval

> BERTifying the Hidden Markov Model for Multi-Source Weakly Supervised Named Entity Recognition — Yinghao Li et al. (arXiv:2105.12848, 2021)

## What this evaluates

This evaluation probes a model's ability to perform named entity recognition under weak supervision, where training labels are noisy and derived from multiple distant supervision sources. It measures how well the model can denoise these labels and generalize entity patterns across general, biomedical, and review domains.

## Datasets

- **CoNLL 2003** — total 22137; splits: train (14041), dev (3250), test (3453)
- **LaptopReview** — total 3845; splits: train (2436), dev (609), test (800)
- **NCBI-Disease** — total 793; splits: train (593), dev (100), test (100)
- **BC5CDR** — total 1500; splits: train (500), dev (500), test (500)

## Metrics

- `entity-level F1` **(primary)** — range: percent
  - F1 = 2 * (Precision * Recall) / (Precision + Recall), computed at the exact entity span level. Precision is the fraction of predicted entities that exactly match gold spans, and Recall is the fraction of gold entities correctly predicted.

## Input / output format

**Input**: Raw sentences (word tokens) accompanied by multiple noisy weak supervision label sources per token.

**Output**: Sequence of entity labels per token (e.g., BIO tags) or a list of predicted entity spans with their types.

## Scoring recipe

```python
def entity_f1(preds, golds):
    pred_spans = extract_spans(preds)
    gold_spans = extract_spans(golds)
    tp = len(set(pred_spans) & set(gold_spans))
    fp = len(set(pred_spans) - set(gold_spans))
    fn = len(set(gold_spans) - set(pred_spans))
    prec = tp / (tp + fp) if (tp + fp) > 0 else 0.0
    rec = tp / (tp + fn) if (tp + fn) > 0 else 0.0
    f1 = 2 * prec * rec / (prec + rec) if (prec + rec) > 0 else 0.0
    return f1 * 100
```

## Common pitfalls

- Evaluating at the token level instead of the entity span level, which inflates scores for NER tasks.
- Reporting single-run results instead of averaging over 5 different random seeds as specified in the protocol.
- Ignoring the multi-source weak supervision setup and treating the task as standard fully supervised NER.

## Evidence (verbatim from paper)

> We evaluate the performance of NER models using entity-level precision, recall, and F1 scores. All scores are presented as percentages. The results come from the average of 5 trials with different random seeds.

## Citation

```bibtex
@misc{li2021bertifying,
  title={BERTifying the Hidden Markov Model for Multi-Source Weakly Supervised Named Entity Recognition},
  author={Yinghao Li et al.},
  year={2021},
  note={arXiv:2105.12848}
}
```

- arXiv: 2105.12848

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.