Vocabulary Coverage Curve Calculator

Explore how vocabulary size changes token coverage, type coverage, and OOV rates across corpora using interactive curves, thresholds, comparisons, and exportable results for NLP.

Coverage Results

Results use the current preprocessing and vocabulary settings.

Target and Recommendation


Interpretation

1. Corpus Data

CSV frequency input may use token,frequency columns.

2. Text Preprocessing

3. Vocabulary Selection

4. Coverage and Chart Options

Frequency Ranking Table

Search tokens and inspect coverage contribution.

RankTokenFrequencyRelative %CumulativeToken coverageType coverageDocument frequencyStatus

Coverage Curve Data

Vocabulary sizeCovered tokensUncovered tokensCoverage %OOV %Marginal gainFrequency cutoffRetained types

Formula Used

Token Coverage (%) = Covered Token Count ÷ Total Token Count × 100
Type Coverage (%) = Included Unique Terms ÷ Total Unique Terms × 100
OOV Rate (%) = OOV Token Count ÷ Total Token Count × 100
Marginal Gain = Current Coverage − Previous Coverage

How to Use

Paste a corpus or load an example preset. Select preprocessing and vocabulary controls. Press calculate to generate the coverage analysis.

Use the target percentage to estimate vocabulary size. Compare training, validation, and test curves. Export tables, vocabulary, charts, or a PDF.

Worked Example

RankTokenFrequencyCumulative tokensCoverage
1data404040%
2model307070%
3learning209090%
4rare10100100%

Frequently Asked Questions

What is vocabulary coverage?

Vocabulary coverage measures represented token occurrences. Frequent words usually dominate early ranks. Rare words extend the curve slowly.

What is token coverage?

Token coverage weights repeated occurrences. Common terms contribute more than rare terms. It suits model input planning.

What is type coverage?

Type coverage measures unique vocabulary inclusion. Every unique term has equal weight. It rises linearly by rank.

What does OOV mean?

OOV means out of vocabulary. These tokens are not directly represented. They may map to an unknown token.

Why lowercase text?

Lowercasing merges capitalization variants. It reduces vocabulary size quickly. Proper names may lose distinctions.

Why remove stop words?

Stop words are extremely frequent. Removing them changes coverage substantially. Use this option carefully.

What is the elbow point?

The elbow marks diminishing returns. Later words add little coverage. It offers a practical vocabulary estimate.

Why compare validation coverage?

Validation text tests generalization. Lower coverage suggests distribution shift. It can expose domain mismatch.

How are duplicates handled?

Duplicate tokens are merged by default. Their frequencies are added together. This prevents fragmented rankings.

Can this replace a production tokenizer?

This calculator provides exploratory analysis. Production tokenizers may behave differently. Validate decisions with deployed tooling.

Related Calculators

Word Frequency Bar ChartN-gram Frequency ChartDocument-Length HistogramSentiment Distribution PlotTopic Distribution ChartTopic-Term HeatmapWord-Embedding Scatter PlotConfusion Matrix for Text ClassesAttention MatrixToken Probability Plot

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.