Skip to content
Back to skills

Subword Fertility Pcw

ASecurity

Evaluates the efficiency and compactness of subword tokenizers on Hindi, English, and code-mixed text by measuring how many tokens are generated per word and how frequently words are split into multiple tokens. Use when the user has predictions and gold and needs to compute Subword Fertility (SF).

  • 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 subword-fertility-pcw --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Subword Fertility Pcw?

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

Security grade badge for Subword Fertility Pcw
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-subword-fertility-pcw/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-subword-fertility-pcw)

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: subword-fertility-pcw
description: Evaluates the efficiency and compactness of subword tokenizers on Hindi, English, and code-mixed text by measuring how many tokens are generated per word and how frequently words are split into multiple tokens. Use when the user has predictions and gold and needs to compute Subword Fertility (SF).
metadata:
  skill_kind: metric
  source_arxiv: 2603.03508
  bibtex_key: [REDACTED]
  confidence: high
---

# subword-fertility-pcw

> Raising Bars, Not Parameters: LilMoo Compact Language Model for Hindi — Fatimah et al. (2026) (arXiv:2603.03508, 2026)

## What this evaluates

Evaluates the efficiency and compactness of subword tokenizers on Hindi, English, and code-mixed text by measuring how many tokens are generated per word and how frequently words are split into multiple tokens.

## Datasets

- **Tokenizer Test Set** — total 31500; splits: test (31500)

## Metrics

- `Subword Fertility (SF)` **(primary)** — range: other (tokens/word)
  - Average number of tokens generated per word. Calculated as total tokens divided by total words. Lower values indicate more compact representations.
- `Proportion of Continued Words (PCW)` — range: [0, 1]
  - Fraction of words that are split into two or more tokens. Calculated as the count of split words divided by total words. Lower values suggest less aggressive splitting.

## Input / output format

**Input**: A list of 31,500 words (15,000 Hindi, 15,000 English, 1,500 code-mixed) from the evaluation set.

**Output**: Tokenized sequence for each input word.

## Scoring recipe

```python
def compute_metrics(words, tokens_list):
    total_words = len(words)
    total_tokens = sum(len(toks) for toks in tokens_list)
    split_words = sum(1 for toks in tokens_list if len(toks) > 1)
    fertility = total_tokens / total_words
    pcw = split_words / total_words
    return {'SF': fertility, 'PCW': pcw}
```

## Common pitfalls

- Subword Fertility and PCW can trade off; a tokenizer might have low PCW but high fertility (e.g., HindRoBERTa), so optimizing for one metric alone may not yield the most efficient tokenizer.
- The test set composition is unbalanced (15k Hindi, 15k English, 1.5k code-mixed), which may skew overall metrics toward English performance and underrepresent code-mixed behavior.
- UNK rate is reported in the comparison table but not defined in the text, making it unclear how unknown tokens are counted or handled during evaluation.

## Evidence (verbatim from paper)

> To assess tokenizer performance, we relied on two standard metrics:

* •

    Subword Fertility (SF): the average number of tokens per word. Lower values indicate more compact representations.

* •

    Proportion of Continued Words (PCW): the fraction of words that are split into two or more tokens. Lower values suggest less aggressive splitting.

We evaluated the trained tokenizer on a test set of 31,500 words, including 15,000 Hindi words, 15,000 English words, and 1,500 code-mixed words.

## Citation

```bibtex
@misc{fatimah2026lilmoo,
  title={Raising Bars, Not Parameters: LilMoo Compact Language Model for Hindi},
  author={Fatimah et al. (2026)},
  year={2026},
  note={arXiv:2603.03508}
}
```

- arXiv: 2603.03508

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.