punctuation-restoration-iwslt-eval
Adversarial Transfer Learning for Punctuation Restoration — Jiangyan Yi et al. (2020) (arXiv:2004.00248, 2020)
What this evaluates
Evaluates a model's ability to restore punctuation marks (commas, periods, question marks) in English text. It specifically probes robustness on both manually transcribed transcripts and ASR-generated transcripts, ignoring non-punctuation tokens during evaluation.
Datasets
- IWSLT2011 — total ?; splits: train (-1), dev (-1), test_Ref (-1), test_ASR (-1)
Metrics
F1-score (primary) — range: percent
- Standard F1 score calculated as 2 * (Precision * Recall) / (Precision + Recall). Precision and Recall are computed exclusively on punctuation tokens (COMMA, PERIOD, QUESTION), completely ignoring non-punctuation tokens (O).
Precision — range: percent
- Ratio of correctly predicted punctuation tokens to all predicted punctuation tokens. Computed only on COMMA, PERIOD, and QUESTION labels.
Recall — range: percent
- Ratio of correctly predicted punctuation tokens to all actual punctuation tokens. Computed only on COMMA, PERIOD, and QUESTION labels.
Input / output format
Input: A sequence of English words/tokens from TED Talk transcripts.
Output: A sequence of token-level labels: O, COMMA, PERIOD, or QUESTION.
Scoring recipe
def compute_metrics(predictions, gold):
# Filter out non-punctuation tokens (O) as per protocol
pred_punct = [p for p, g in zip(predictions, gold) if g != 'O']
gold_punct = [g for g in gold if g != 'O']
tp = sum(1 for p, g in zip(pred_punct, gold_punct) if p == g)
fp = sum(1 for p, g in zip(pred_punct, gold_punct) if p != g)
fn = sum(1 for p, g in zip(pred_punct, gold_punct) if p != g)
precision = tp / (tp + fp) if (tp + fp) > 0 else 0.0
recall = tp / (tp + fn) if (tp + fn) > 0 else 0.0
f1 = 2 * precision * recall / (precision + recall) if (precision + recall) > 0 else 0.0
return precision, recall, f1
Common pitfalls
- Including non-punctuation tokens (label 'O') in the precision/recall/F1 calculation, which artificially inflates scores.
- Failing to distinguish between the two test sets (Ref. for manual transcripts vs. ASR for speech recognition outputs), leading to misreported results.
- Misinterpreting the label mapping: exclamation marks and semicolons are grouped under PERIOD, not treated as separate classes.
Evidence (verbatim from paper)
All models are evaluated in terms of precision (P), recall (R), F1-score (F1) in our experiments. We focus on the performance of the punctuation marks. So the correctly predicted non-punctuation marks O are ignored. We only evaluate the performance of COMMA, PERIOD and QUESTION on two test sets: Ref. and ASR, respectively.
Citation
@misc{yi2020adversarial,
title={Adversarial Transfer Learning for Punctuation Restoration},
author={Jiangyan Yi et al. (2020)},
year={2020},
note={arXiv:2004.00248}
}
1---2name: punctuation-restoration-iwslt-eval3description: Evaluates a model's ability to restore punctuation marks (commas, periods, question marks) in English text. It specifically probes robustness on both manually transcribed transcripts and ASR-generated transcripts, ignoring non-punctuation tokens during evaluation. Use when the user wants to benchmark on IWSLT2011, or asks about evaluating this task. Reports F1-score.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/punctuation-restoration-iwslt-eval6 skill_kind: dataset_eval7 source_arxiv: 2004.002488 bibtex_key: yi2020adversarial9 confidence: high10---1112# punctuation-restoration-iwslt-eval1314> Adversarial Transfer Learning for Punctuation Restoration — Jiangyan Yi et al. (2020) (arXiv:2004.00248, 2020)1516## What this evaluates1718Evaluates a model's ability to restore punctuation marks (commas, periods, question marks) in English text. It specifically probes robustness on both manually transcribed transcripts and ASR-generated transcripts, ignoring non-punctuation tokens during evaluation.1920## Datasets2122- **IWSLT2011** — total ?; splits: train (-1), dev (-1), test_Ref (-1), test_ASR (-1)2324## Metrics2526- `F1-score` **(primary)** — range: percent27 - Standard F1 score calculated as 2 * (Precision * Recall) / (Precision + Recall). Precision and Recall are computed exclusively on punctuation tokens (COMMA, PERIOD, QUESTION), completely ignoring non-punctuation tokens (O).28- `Precision` — range: percent29 - Ratio of correctly predicted punctuation tokens to all predicted punctuation tokens. Computed only on COMMA, PERIOD, and QUESTION labels.30- `Recall` — range: percent31 - Ratio of correctly predicted punctuation tokens to all actual punctuation tokens. Computed only on COMMA, PERIOD, and QUESTION labels.3233## Input / output format3435**Input**: A sequence of English words/tokens from TED Talk transcripts.3637**Output**: A sequence of token-level labels: O, COMMA, PERIOD, or QUESTION.3839## Scoring recipe4041```python42def compute_metrics(predictions, gold):43 # Filter out non-punctuation tokens (O) as per protocol44 pred_punct = [p for p, g in zip(predictions, gold) if g != 'O']45 gold_punct = [g for g in gold if g != 'O']46 47 tp = sum(1 for p, g in zip(pred_punct, gold_punct) if p == g)48 fp = sum(1 for p, g in zip(pred_punct, gold_punct) if p != g)49 fn = sum(1 for p, g in zip(pred_punct, gold_punct) if p != g)50 51 precision = tp / (tp + fp) if (tp + fp) > 0 else 0.052 recall = tp / (tp + fn) if (tp + fn) > 0 else 0.053 f1 = 2 * precision * recall / (precision + recall) if (precision + recall) > 0 else 0.054 return precision, recall, f155```5657## Common pitfalls5859- Including non-punctuation tokens (label 'O') in the precision/recall/F1 calculation, which artificially inflates scores.60- Failing to distinguish between the two test sets (Ref. for manual transcripts vs. ASR for speech recognition outputs), leading to misreported results.61- Misinterpreting the label mapping: exclamation marks and semicolons are grouped under PERIOD, not treated as separate classes.6263## Evidence (verbatim from paper)6465> All models are evaluated in terms of precision (P), recall (R), F1-score (F1) in our experiments. We focus on the performance of the punctuation marks. So the correctly predicted non-punctuation marks O are ignored. We only evaluate the performance of COMMA, PERIOD and QUESTION on two test sets: Ref. and ASR, respectively.6667## Citation6869```bibtex70@misc{yi2020adversarial,71 title={Adversarial Transfer Learning for Punctuation Restoration},72 author={Jiangyan Yi et al. (2020)},73 year={2020},74 note={arXiv:2004.00248}75}76```7778- arXiv: 2004.00248