Skip to content
Back to skills

Masakhaner Eval

ASecurity

Evaluates named entity recognition (NER) capabilities across ten African languages, probing models' ability to identify PER, ORG, and LOC entities in low-resource, morphologically complex, and culturally specific news text. Use when the user wants to benchmark on MasakhaNER, or asks about evaluating this task. Reports F1 score.

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

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill masakhaner-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Masakhaner Eval?

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

Security grade badge for Masakhaner Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-masakhaner-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-masakhaner-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: masakhaner-eval
description: Evaluates named entity recognition (NER) capabilities across ten African languages, probing models' ability to identify PER, ORG, and LOC entities in low-resource, morphologically complex, and culturally specific news text. Use when the user wants to benchmark on MasakhaNER, or asks about evaluating this task. Reports F1 score.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2103.11811
  bibtex_key: [REDACTED]
  confidence: high
---

# masakhaner-eval

> MasakhaNER: Named Entity Recognition for African Languages — Adelani et al. (2021) (arXiv:2103.11811, 2021)

## What this evaluates

Evaluates named entity recognition (NER) capabilities across ten African languages, probing models' ability to identify PER, ORG, and LOC entities in low-resource, morphologically complex, and culturally specific news text.

## Datasets

- **MasakhaNER** — total ?; splits: train (-1), test (-1)

## Metrics

- `F1 score` **(primary)** — range: [0, 1]
  - Standard NER evaluation metric computed over exact entity span matches. Precision = correct entities / predicted entities, Recall = correct entities / gold entities, F1 = 2 * (Precision * Recall) / (Precision + Recall).

## Input / output format

**Input**: Tokenized text sequences (sentences) from African language news articles.

**Output**: Sequence of BIO/IOB entity labels for each token, indicating PER, ORG, LOC, or O.

## Scoring recipe

```python
def compute_f1(predictions, gold):
    pred_spans = extract_spans(predictions)
    gold_spans = extract_spans(gold)
    tp = len(pred_spans & gold_spans)
    fp = len(pred_spans - gold_spans)
    fn = len(gold_spans - pred_spans)
    precision = tp / (tp + fp) if (tp + fp) > 0 else 0
    recall = tp / (tp + fn) if (tp + fn) > 0 else 0
    f1 = 2 * precision * recall / (precision + recall) if (precision + recall) > 0 else 0
    return f1
```

## Common pitfalls

- Gazetteer augmentation uses English Wikipedia for languages without native Wikipedia (Luo, Nigerian-Pidgin), which may bias results toward English-named entities.
- Cross-lingual transfer experiments restrict evaluation to PER, ORG, and LOC categories because DATE entities are missing from some source domains/languages.
- Domain adaptation (WikiAnn) uses fixed small splits (100 sentences) for most languages but 1K for Swahili, creating uneven transfer baselines.

## Evidence (verbatim from paper)

> For each language, we train the models on the in-language training data and evaluate on its test data. ... For these experiments, we focus on the PER, ORG, and LOC categories, because the gazetteers from Wikipedia do not contain DATE entities and some source domains and languages that we transfer from do not have the DATE annotation.

## Citation

```bibtex
@misc{adelani2021masakhaner,
  title={MasakhaNER: Named Entity Recognition for African Languages},
  author={Adelani et al. (2021)},
  year={2021},
  note={arXiv:2103.11811}
}
```

- arXiv: 2103.11811

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.