/ Модель

Характеристики

Лицензия
MIT
Базовая модель
mmBERT-base
Опубликована
25 сен 2026

dewpoint

Разметка токеновТекст → label

Dewpoint восстанавливает пунктуацию и регистр в распознанном тексте на многих языках, не меняя сами слова.

0скачиваний за 30 дней0лайковвеса обновлены25 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Dewpoint — мультиязычная модель-теггер для восстановления пунктуации и регистра в распознанной речи, опубликованная valkayuh. Для каждого слова она предсказывает, какой знак поставить после него — запятую, точку, вопросительный или восклицательный знак либо ничего — и как его записать: строчными буквами, с заглавной или прописными. Модель не добавляет, не удаляет и не переписывает слова.

По README, она обучена для 79 языков на текстовых данных с синтетическими ошибками распознавания речи; в репозитории доступны веса Safetensors и графы ONNX. Архитектура объединяет компоненты на базе mmBERT и XLM-RoBERTa large; полный вариант требует двух проходов, а вариант только с mmBERT работает быстрее.

Сценарии применения

  • расстановка пунктуации в транскриптах речи
  • восстановление заглавных букв в результатах ASR
  • постобработка субтитров и расшифровок
  • подготовка распознанной речи к чтению
  • обработка многоязычных транскриптов

Ограничения

Модель обрабатывает только текст и восстанавливает ограниченный набор знаков; двоеточия, кавычки, тире и другие знаки не предсказываются. Качество заметно различается по языкам и условиям, а короткие фрагменты могут приводить к ошибкам; для разговорной речи с перебиваниями результаты отдельно не оценены.

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Dewpoint: punctuation and capitals for the spoken word

Dewpoint

Punctuation and truecasing for speech-recognition output, in 79 languages. Speech recognisers hand back a stream of lowercase words with no punctuation, and Dewpoint restores it: it adds the commas, full stops and question marks, and the capitals. Open weights, MIT licence, free for everyone.

so i said meet at three thirty tuesday what do you think the iphone was announced by steve jobs in san francisco
→ So I said meet at three thirty Tuesday. What do you think? The iPhone was announced by Steve Jobs in San Francisco.

ich weiß nicht ob wir das schaffen aber wir sollten es versuchen was meinst du
→ Ich weiß nicht, ob wir das schaffen, aber wir sollten es versuchen. Was meinst du?

πού είναι ο σταθμός ξέρεις να μου πεις
→ Πού είναι ο σταθμός; Ξέρεις να μου πεις;

These are unedited outputs of this checkpoint. Dewpoint is a tagger, not a generator. For each word it decides which mark follows (none, , . ? !) and how the word is cased (lower, Capitalised, UPPER). It never adds, drops, reorders or rewrites a word, so it cannot invent content.

Results

On the IWSLT TED benchmark, Dewpoint scores higher than every other multilingual punctuation model we tested, under all three test conditions. On the two text test sets it is behind no other model in any language: 0 of 9 on the official set and 0 of 57 on the extended one. Under ASR noise it trails in 7 of 33, 5 of them to raw Whisper.

Macro-F1 on three benchmarks

systemparamsofficial, 9 langWIT3, 57 langASR, 33 lang
Dewpoint869M0.75590.73030.6332
Dewpoint, mmBERT-base half alone307M0.73920.70980.6197
Dewpoint, XLM-R-large half alone561M0.74430.72410.6208
oliverguhr/fullstop-punctuation-multilang-large559M0.64380.59840.5301
kredor/punctuate-all278M0.63440.59500.5333
oliverguhr/fullstop-punctuation-multilingual-sonar-base278M0.63810.56530.5205
1-800-BAD-CODE/xlm-roberta_punctuation_fullstop_truecase278M0.62040.57100.5346
raw openai/whisper-large-v3-turbo punctuation809M——0.4436

Macro-F1 over COMMA, PERIOD and QUESTION, averaged over languages. Every system runs through the same harness and gets the same dev-set threshold calibration.

Head to head on each model's own languages. The averages above include languages the other models were never trained on, which pulls their means down. Scored only on the languages each model lists on its own model card, the margins are smaller:

other modellanguages it supportsofficialWIT3ASR
oliverguhr/fullstop-punctuation-multilang-large40.755 vs 0.791 (4)0.758 vs 0.793 (5)0.741 vs 0.772 (4)
oliverguhr/fullstop-punctuation-multilingual-sonar-base50.734 vs 0.786 (5)0.752 vs 0.797 (6)0.702 vs 0.753 (5)
kredor/punctuate-all120.726 vs 0.786 (5)0.733 vs 0.797 (14)0.695 vs 0.755 (9)
1-800-BAD-CODE/xlm-roberta_punctuation_fullstop_truecase470.620 vs 0.756 (9)0.598 vs 0.744 (37)0.540 vs 0.636 (27)

Dewpoint is ahead in every one of these languages except Bengali on Whisper ASR output against xlm-r truecase.

Each cell is that model's mean macro-F1 vs Dewpoint's on the same languages, with the number of languages in brackets. This is the fairer comparison.


Quick start

pip install torch transformers safetensors huggingface_hub numpy   # GPU or CPU
# or, with no torch at all:
pip install onnxruntime tokenizers huggingface_hub numpy
import os, sys
from huggingface_hub import hf_hub_download
sys.path.insert(0, os.path.dirname(hf_hub_download("valkayuh/dewpoint", "dewpoint.py")))
from dewpoint import Punctuator

p = Punctuator.from_pretrained("valkayuh/dewpoint")   # torch if installed, else ONNX
p.restore("what time is it in tokyo right now", lang="en")
# 'What time is it in Tokyo right now?'

from_pretrained downloads only what the chosen backend needs. The torch backend fetches the safetensors (3.5 GB, or 1.2 GB with members=["mmbert-base"]), the ONNX backend fetches the ONNX graphs, and neither fetches the other.

Always pass the language. It selects the calibrated decision thresholds, turns casing off for scripts that have none, and picks the right marks to write: ؟ for Arabic, ; for the Greek question mark, 。 and , for Chinese, । for Hindi.

Single-model mode. Pass members=["mmbert-base"] to download and run only the 307M-parameter mmBERT-base half. It uses its own calibration, runs in about half the GPU time, and still beats every other model we tested on every benchmark:

p = Punctuator.from_pretrained("valkayuh/dewpoint", members=["mmbert-base"])

Streaming. For live captions, each word is released only once it has right-hand context and a stable label, so marks don't flicker:

s = p.stream(lang="en", lag=6)
for chunk in asr_chunks:            # partial transcripts as they arrive
    print(s.push(chunk), end="", flush=True)
print(s.finish())

Labels and probabilities. p.predict(words, lang) returns per-word labels plus the averaged posteriors (punct_probs, case_probs), in case you want confidence scores or your own decision rule.

Command line.

echo "i called the office this morning but nobody answered did you get my message" | python dewpoint.py --lang en
# I called the office this morning, but nobody answered. Did you get my message?

Formats and integration

you wantuse
Python with a GPUPunctuator(..., backend="torch"): bf16 on CUDA, fp32 on CPU
Python without torch, e.g. a slim CPU serverPunctuator(..., backend="onnx"): needs only onnxruntime, tokenizers, numpy
a local HTTP APIpython serve.py gives POST /restore {"text", "lang"} (standard library only)
a hosted APIdeploy this repo as a Hugging Face Inference Endpoint; handler.py serves {"inputs", "parameters": {"lang"}}
the shellpython dewpoint.py --lang de "…" or pipe text on stdin
C#, Java, JavaScript, C++, mobilethe ONNX graphs in onnx/, with the pre- and post-processing below

ONNX graphs. There is one per member, in onnx/mmbert-base/ and onnx/xlm-roberta-large/ (the latter keeps its weights in model.onnx.data beside the graph). Both are fp32, opset 17, with dynamic batch and sequence axes:

  • inputs: input_ids, attention_mask, int64 [batch, seq], from that member's tokenizer.json with the words passed pre-tokenised
  • outputs: punct_logits [batch, seq, 5] and case_logits [batch, seq, 3]

Around the graph, dewpoint.py does four things, and a port needs the same four:

  1. split the input into overlapping windows of at most 508 subwords, keeping each window's centre (plan_windows)
  2. read each word's label from its first subword
  3. average the two members' softmax posteriors
  4. add the calibrated per-class bias from ensemble_config.json for the language, then take the argmax

Verified. Run over the whole official test set on CPU, the ONNX backend scores 0.7558 macro-F1 against the published 0.7559; the largest difference in any scored language is 0.0011, the gap between fp32 ONNX and the bf16 GPU run the published numbers come from. Its tokenisation matches transformers exactly on 323 documents in 57 languages.

Speed

Measured on a 584-word TED passage, after warm-up, with the code in this repo:

hardwareDewpoint (869M)mmBERT half (307M)
RTX 5080, torch bf1645 ms (13k words/s)23 ms (25k words/s)
Ryzen 7 5800X3D, torch fp322.18 s632 ms (1k words/s)
Ryzen 7 5800X3D, ONNX Runtime fp322.13 s606 ms (1k words/s)

Input of any length is handled with overlapping 512-token windows. Only the centre of each window commits its predictions, because words near a window edge lack context and score measurably worse.


Model

Dewpoint is an ensemble of two dual-head token classifiers. Both members read the same word list and produce one posterior per word, and those posteriors are averaged.

memberencoderarchitectureparametersof which embeddings
mmbert-base/jhu-clsp/mmBERT-baseModernBERT307.5M196.6M
xlm-roberta-large/FacebookAI/xlm-roberta-largeXLM-RoBERTa561.0M256.5M

Each member is an encoder, then a residual shared trunk (Linear, GELU, LayerNorm), then two linear heads:

  • punctuation, 5 classes: O COMMA PERIOD QUESTION EXCLAM
  • case, 3 classes: LOWER (meeting), CAP for a capitalised first letter (Tuesday, Tokyo, a sentence's first word), and UPPER for a word written entirely in capitals (NASA, BBC, DNA). Mixed-case words such as iPhone are handled by a word list, described below.

There is one decision per word, not per subword: the label sits on each word's first subword. Punctuation and case are learned together because they are correlated: a sentence end means a capital comes next.

Combining the members. Both members label the same words, so their outputs line up without any tokenizer reconciliation. The average is taken in probability space, not log space. With a geometric mean, one confident but wrong member could veto a class; the arithmetic mean degrades gracefully instead.

Calibration. Class weighting stops the model predicting "no punctuation" everywhere, but it buys recall at the cost of precision, so a plain argmax is not the F1-optimal rule. Instead, a per-class additive bias on the log-posterior is fitted on IWSLT dev2010, which is held out of every test table. Whether to add per-language biases on top, and how far to trust them, is chosen by cross-validation inside dev2010: its talks are split in half five times, and each strategy is fitted on one half and scored on the other. An unshrunk bias per language, fitted on eight talks, overfits: it was never the winning strategy, and for Dewpoint it scored worst. Dewpoint uses per-language biases pulled three quarters of the way back to the pooled one. The ensemble is calibrated as a system in its own right, and every other model in the tables went through the identical procedure, each choosing its own strategy.

Post-processing, in restore() only (predict() returns the raw decision):

  • a capital after every sentence-final mark
  • a gazetteer of 4,896 mixed-case forms such as iPhone, McDonald and GHz
  • a closing mark if the text would otherwise end on none

Evaluation

  • Three test conditions:
    • the IWSLT 2017 official tst2010–2015 sets, with 9 scorable languages
    • the WIT3 releases of the same 90 talks in 57 language tracks, so only the language changes
    • an ASR condition: TED text spoken by TTS, transcribed by Whisper large-v3-turbo, and aligned back to the reference, in 33 languages
  • Metric. Macro-F1 over COMMA, PERIOD and QUESTION, averaged over languages. EXCLAM is folded into PERIOD, because no other model emits it. Accuracy is never reported: about 87% of words carry no mark, so a model that predicts nothing is "87% accurate".
  • Exclusions. Japanese and Thai are excluded, and named here. Their TED references carry almost no punctuation (0.38% and 0.12% of tokens).
  • Reference audit. Two errors in the reference's label maps were fixed for every system alike. Armenian writes its full stop as an ASCII colon; fixing that doubled every system's Armenian score. And the Burmese comma U+104A had been mapped to a full stop.
  • No TED data was used for training. TED is the test set.

Every language on the extended set

Per-language macro-F1 on 57 WIT3 language tracks

Under ASR noise

Per-language gap to the best rival under ASR

5 of the 7 are to raw Whisper (English, Spanish, French, Italian, Portuguese). Whisper punctuates from the audio itself, so it can use pauses and intonation that a text-only tagger never sees. The rest: Bengali (−0.044 to fullstop-sonar), Albanian (−0.025 to xlm-r truecase). Languages marked * in the chart have under 3,000 scored words, so their gaps are noisy.

Per class, and truecasing

Per-class F1

Mean per-class F1 against the strongest other model:

test setsystemCOMMAPERIODQUESTION
IWSLT 2017 official (9 languages)Dewpoint0.65570.79230.8197
IWSLT 2017 official (9 languages)fullstop-large0.53340.72060.6772
WIT3, same 90 talks (57 language tracks)Dewpoint0.64820.77940.7632
WIT3, same 90 talks (57 language tracks)fullstop-large0.50670.69880.5896
Whisper ASR output (33 languages)Dewpoint0.56560.71020.6238
Whisper ASR output (33 languages)fullstop-large0.44890.65560.4858

Truecasing F1 against the only other model that restores case, on cased scripts:

test setcased languagesDewpoint CAPUPPERxlm-r truecase CAPUPPERlanguages behind
IWSLT 2017 official (9 languages)60.87720.87480.77080.78880
WIT3, same 90 talks (57 language tracks)430.85330.85990.71730.80050
Whisper ASR output (33 languages)250.80070.75840.71360.70830

Reading the truecasing table. CAP scores words whose first letter should be a capital: names, places, and the first word of every sentence. UPPER scores words written entirely in capitals, which in practice means acronyms and initialisms such as NASA, BBC or DNA. These are much rarer, so they get their own score and are not swamped by ordinary capitals. A single capital letter such as I counts as CAP.

The truecasing comparison covers cased scripts only. On caseless scripts (Arabic, Chinese, Korean, Hindi and others) the case head is masked by design, so Latin loanwords inside them are never capitalised. xlm-roberta_punctuation_fullstop_truecase does capitalise them, so it wins on those words by construction. The native EXCLAM class scores 0.11 F1 on the official set and 0.07 on WIT3. No other model emits it at all.

Size

Parameters against macro-F1

Where the gain comes from

Every other model in these tables is an XLM-RoBERTa model, so a win could come from the architecture or from the training recipe. To separate the two, we trained XLM-R-large, the encoder fullstop-punctuation-multilang-large uses, on this corpus with this recipe.

Method against architecture

The recipe is worth +0.08 to +0.13 macro-F1. Swapping the encoder is worth −0.004 to +0.016. The corpus, the orthography fixes and the decision rule matter roughly an order of magnitude more than the encoder. Neither encoder dominated the other, and averaging exploits exactly that: members that do not make the same errors.

Per-language tables

languageDewpointmmBERT half alonebest other modelwhichgap
Arabic (ar)0.65380.62290.5586fullstop-large+0.095
Chinese (zh)0.65510.65460.5502xlm-r truecase+0.105
Dutch (nl)0.76860.75870.7304fullstop-sonar+0.038
English (en)0.80330.79350.7430fullstop-large+0.060
French (fr)0.79560.78410.7581fullstop-large+0.038
German (de)0.84960.84020.8338fullstop-large+0.016
Italian (it)0.71450.68860.6838fullstop-large+0.031
Korean (ko)0.80100.78250.6553xlm-r truecase+0.146
Romanian (ro)0.76180.72740.6860fullstop-large+0.076
languageDewpointmmBERT half alonebest other modelwhichgap
Albanian (sq)0.71520.68280.6036fullstop-large+0.112
Arabic (ar)0.65380.62250.5585fullstop-large+0.095
Armenian (hy)0.79020.77090.4924kredor+0.298
Azerbaijani (az)0.72860.71050.5832fullstop-sonar+0.145
Bengali (bn)0.69400.64970.5584fullstop-large+0.136
Bosnian (bs)0.77530.75400.6324fullstop-large+0.143
Bulgarian (bg)0.80890.79060.7491kredor+0.060
Burmese (my)0.44270.35690.3553xlm-r truecase+0.087
Catalan (ca)0.71890.68800.6339fullstop-large+0.085
Chinese (zh)0.65430.63490.4509xlm-r truecase+0.203
Chinese (Simplified) (zh-cn)0.64860.64830.5439xlm-r truecase+0.105
Chinese (Traditional) (zh-tw)0.59410.59600.5136xlm-r truecase+0.081
Croatian (hr)0.77120.75400.6942fullstop-large+0.077
Czech (cs)0.81200.79300.7461kredor+0.066
Danish (da)0.76610.74980.6975fullstop-large+0.069
Dutch (nl)0.81710.80600.7819fullstop-sonar+0.035
English (en)0.80360.79370.7431fullstop-large+0.061
Esperanto (eo)0.76630.72970.6385fullstop-sonar+0.128
Estonian (et)0.81460.78840.7178fullstop-large+0.097
Finnish (fi)0.82070.79960.7283kredor+0.092
French (fr)0.79610.78420.7588fullstop-large+0.037
French (Canada) (fr-ca)0.77780.76040.7445fullstop-sonar+0.033
Georgian (ka)0.71420.65830.6179fullstop-large+0.096
German (de)0.84720.83920.8302fullstop-large+0.017
Greek (el)0.73310.70710.6951fullstop-large+0.038
Hebrew (he)0.73980.70300.6506fullstop-large+0.089
Hindi (hi)0.58550.56000.4925fullstop-large+0.093
Hungarian (hu)0.79030.76370.6771fullstop-large+0.113
Indonesian (id)0.73500.71740.6401fullstop-large+0.095
Italian (it)0.74120.72110.7148fullstop-large+0.026
Kazakh (kk)0.76570.75560.6508xlm-r truecase+0.115
Korean (ko)0.80080.78250.6564xlm-r truecase+0.144
Kurdish (ku)0.11140.28430.0298xlm-r truecase+0.082
Latvian (lv)0.81740.79280.7117kredor+0.106
Lithuanian (lt)0.79350.77250.6945kredor+0.099
Macedonian (mk)0.74790.71900.6378fullstop-large+0.110
Malay (ms)0.77480.74260.6387fullstop-large+0.136
Marathi (mr)0.66240.61200.5224fullstop-large+0.140
Mongolian (mn)0.79620.74470.6349xlm-r truecase+0.161
Norwegian (nb)0.77040.75310.7399fullstop-large+0.031
Persian (fa)0.68950.67000.5903fullstop-large+0.099
Polish (pl)0.81810.79990.7696kredor+0.049
Portuguese (pt)0.77250.75550.7095kredor+0.063
Portuguese (Brazil) (pt-br)0.75500.73540.6701kredor+0.085
Romanian (ro)0.76230.73200.6975fullstop-large+0.065
Russian (ru)0.83540.82180.7312kredor+0.104
Serbian (sr)0.77830.75880.6984fullstop-large+0.080
Slovak (sk)0.80500.77870.7440kredor+0.061
Slovenian (sl)0.83860.82110.8100kredor+0.029
Spanish (es)0.75820.74630.7070fullstop-large+0.051
Swahili (sw)0.64030.59440.5180fullstop-sonar+0.122
Swedish (sv)0.78220.76110.7432fullstop-large+0.039
Tamil (ta)0.50910.48620.4771xlm-r truecase+0.032
Turkish (tr)0.72900.70820.5883xlm-r truecase+0.141
Ukrainian (uk)0.81490.79510.7241kredor+0.091
Urdu (ur)0.53090.51860.5042fullstop-large+0.027
Vietnamese (vi)0.71050.68300.5800fullstop-sonar+0.131
languageDewpointmmBERT half alonebest other modelwhichgap
Albanian (sq)0.35800.40050.3830xlm-r truecase−0.025
Arabic (ar)0.53090.50200.4840fullstop-large+0.047
Bengali (bn)0.07300.14040.1170fullstop-sonar−0.044
Bulgarian (bg)0.72470.69280.6776kredor+0.047
Catalan (ca)0.71120.66980.6025fullstop-sonar+0.109
Chinese (zh)0.75280.76200.7312xlm-r truecase+0.022
Dutch (nl)0.67650.66610.6115kredor+0.065
English (en)0.78370.78690.9382raw Whisper−0.155
Finnish (fi)0.72330.70530.6593kredor+0.064
French (fr)0.77020.77050.8240raw Whisper−0.054
German (de)0.83290.82040.8140fullstop-large+0.019
Greek (el)0.64370.59790.5943kredor+0.049
Hebrew (he)0.63320.58700.5265fullstop-sonar+0.107
Hindi (hi)0.62380.58050.5509fullstop-sonar+0.073
Hungarian (hu)0.72100.70410.6368fullstop-large+0.084
Indonesian (id)0.67230.65820.6249fullstop-large+0.047
Italian (it)0.70250.67500.7745raw Whisper−0.072
Kazakh (kk)0.49530.49330.3990raw Whisper+0.096
Latvian (lv)0.72180.70390.6108kredor+0.111
Malay (ms)0.67430.65160.5907fullstop-large+0.084
Marathi (mr)0.25840.26850.2000xlm-r truecase+0.058
Persian (fa)0.52090.49900.4512xlm-r truecase+0.070
Polish (pl)0.76080.74620.7409kredor+0.020
Portuguese (pt)0.76160.75350.8522raw Whisper−0.091
Romanian (ro)0.64620.61480.5553xlm-r truecase+0.091
Russian (ru)0.76270.76470.6927kredor+0.070
Spanish (es)0.78660.78440.8386raw Whisper−0.052
Swahili (sw)0.41650.39310.3596kredor+0.057
Swedish (sv)0.66460.65140.6435fullstop-large+0.021
Tamil (ta)0.40520.38250.2485fullstop-sonar+0.157
Turkish (tr)0.66700.66130.5448xlm-r truecase+0.122
Ukrainian (uk)0.73100.69550.6545xlm-r truecase+0.076
Vietnamese (vi)0.68950.66840.5873xlm-r truecase+0.102

All per-language, per-class scores for every system are in results/scores.json.


Training

Text: 79 languages, no TED

sourcelicencerole
WikipediaCC-BY-SA-4.0volume, and most of the proper nouns truecasing needs
Europarlno known restrictionsspoken-style parliamentary prose
TatoebaCC-BY-2.0 FRquestions: 10–25% of its sentences are questions
HPLT 2.0 cleanedCC0-1.0fills six languages Wikipedia leaves thin
VoxPopuli transcriptsCC0-1.0verbatim spoken transcripts, 16 languages
Aya datasetApache-2.0question-dense human prose for low-resource languages

The corpus is temperature-sampled so that the largest languages don't swamp the rest. Labels come free: strip the punctuation and case from clean prose, and what was stripped is exactly what the model must predict. Synthetic ASR noise is applied to about two thirds of training examples: filler words, dropped short words, character substitutions, merged and split words, numbers written the way they're spoken, and truncated utterances.

Speech: round-trip ASR data

A slice of the training text was spoken aloud by TTS, transcribed by Whisper large-v3-turbo, and aligned back to the original. That gives inputs with genuine recognition errors but ground-truth labels. The corpus has 0.96M unique words across 23 languages, voiced by three permissively licensed engines. Oversampled to match the per-language dose of the original recipe, it makes up 6.8% of the final fine-tuning stage.

enginelicencelanguages (utterances kept)
Kokoro-82MApache-2.0en (5,998), es (5,077), fr (3,996), hi (3,879), it (3,996), pt (3,996), zh (2,992)
Piper voicesCC0 or CC-BY-4.0, per voicebg (2,180), de (2,198), el (2,124), fa (1,057), fi (1,196), hu (1,184), kk (244), lv (1,067), nl (2,168), pl (2,189), ro (1,194), ru (1,177), sq (662), sv (2,183), uk (1,150)
Chatterbox MultilingualMITar (606)

Every Piper voice's licence was read from its model card by code, and any voice whose card said non-commercial, share-alike, "see URL" or nothing at all was refused. The voice that produced a language's ASR test audio is never used for its training audio. French is the exception, because Kokoro has only one French voice. No audio was kept or is distributed.

Procedure

Each member was trained in stages. Every stage starts from the weights the previous stage ended with, and each later stage makes smaller, more targeted changes:

  1. Learn the task. The encoder starts from its public pretrained weights, knowing language but nothing about punctuation, and learns to predict marks and capitals on a large clean-text corpus.
  2. Rebalance toward speech. Training continues on a resample of the corpus that gives more weight to spoken-style sources (parliamentary transcripts, Tatoeba, Aya) and mixes short passages in with long ones, closer to what ASR produces.
  3. Harden against recognition errors. A short final stage on a 55M-word mix that includes the round-trip ASR data above, at a low learning rate, so the model learns to punctuate text containing Whisper's mistakes without forgetting the rest.
memberstagestarts fromdatastepspeak learning rate
mmBERT-baselearn the taskjhu-clsp/mmBERT-base1.02B-word corpus, long passages34,0004e-5
mmBERT-baserebalanceprevious stage735M-word resample13,0001.8e-5
mmBERT-baserebalance, continuedprevious stage735M-word resample3,5008e-6
mmBERT-basehardenprevious stage55M-word mix with round-trip data4,0009e-6
XLM-R-largelearn + rebalanceFacebookAI/xlm-roberta-large735M-word resample17,0008e-6
XLM-R-largehardenprevious stage55M-word mix with round-trip data4,0003e-6

How to read the table:

  • Steps. A step is one update of the weights, computed from a batch of 64 text windows of up to 512 subword tokens each, roughly 30,000 tokens. The first mmBERT stage, for example, saw about a billion tokens.
  • Peak learning rate. This is the largest step size in that stage's schedule. It falls from stage to stage because later stages refine rather than relearn.
  • XLM-R-large has fewer stages because it went straight to the rebalanced corpus. It was first trained as a controlled comparison against mmBERT-base, and later became the second member.

Settings shared by all stages:

  • AdamW, with a learning rate that warms up and then decays along a cosine curve
  • a higher learning rate for the two heads than for the encoder
  • class-weighted cross-entropy on both heads, so the rare marks are not drowned out by the many words that take none
  • label smoothing 0.02
  • for XLM-R-large only, a frozen embedding matrix

Everything was trained on a single RTX 5080 with 16 GB.

What did not work

attemptresult
supervised contrastive loss (reported +1.9 to +3.2 F1 on this task)+0.001 / +0.001 / −0.002; the rarest class got worse
joint punctuation–case decodingcut head contradictions from 9.0% to 0.27% but lowered F1 at every setting
mDeBERTa-v3-base as a third encoderlost on all three sets
distilling the ensemble into one mmBERT-basein-domain validation +0.015, every held-out set flat
choosing case given the decided punctuationlowered case F1 at every coupling strength

The distillation result is why Dewpoint is an ensemble. Its robustness comes from the two members disagreeing on each input. A single model trained to mimic their average has no disagreement left to exploit. Two of these experiments were pre-registered: their success criteria were written down before the run.


Limitations

  • Two forward passes. The ensemble has 2.8× the parameters of its mmBERT half, for +0.013 to +0.020 macro-F1. If latency matters more than that margin, use members=["mmbert-base"].
  • Text only. Raw Whisper still wins in English, Spanish, French, Italian, Portuguese under ASR conditions, most likely because it hears pauses and intonation. Adding a tagger after ASR only helps if your ASR doesn't already punctuate.
  • English is not state of the art against English-only systems. On English tst2011, Dewpoint scores 0.800 macro-F1 (COMMA 0.715, PERIOD 0.823, QUESTION 0.860) without having seen any TED text. The strongest published English-only systems report about 0.85 overall F1 on IWSLT2011; they were trained in-domain on TED and scored on a differently preprocessed version of the set.
  • Weak languages. Kurdish (0.11), Burmese (0.44), Tamil (0.51), Urdu (0.53) are still low in absolute terms, even where Dewpoint leads the other models. In Kurdish (0.11 against 0.28) the ensemble is below its own mmBERT half, so averaging in probability space does not help everywhere.
  • Japanese and Thai are unmeasured. Their TED references are nearly unpunctuated, so no trustworthy number exists. The model is trained on both.
  • Very short inputs. With only a few words there is little context, and the case head can guess a sentence boundary that the punctuation head didn't place (hello how are you → Hello, How are You?). On full passages it is rare: 0.4% of words on the official test set. Pass whole utterances, not fragments.
  • Caseless-script loanwords are never capitalised (see truecasing above).
  • EXCLAM is weak: 0.11 F1 on the official set and 0.07 on WIT3, and exclamation marks are rare there too.
  • Only five marks. Colons, semicolons, dashes, quotes and parentheses are not restored, and French typographic spacing before ? and ! is not added.
  • Domain. The benchmark is TED, which is prepared monologue. Conversational, overlapping, multi-speaker speech is harder, and isn't measured here.

Licence and provenance

Weights and code: MIT. Both base encoders are MIT-licensed. Every TTS voice used for training audio is MIT, Apache-2.0, CC0 or CC-BY-4.0.

A few things are worth knowing before commercial use:

  • Wikipedia is CC-BY-SA-4.0. Whether share-alike terms reach model weights trained on such text is legally unsettled. Many encoders trained on Wikipedia, BERT among them, are released under permissive licences, and Dewpoint follows that practice.
  • Tatoeba is CC-BY-2.0 FR. Sentences © Tatoeba contributors, https://tatoeba.org.
  • Some Piper voices are CC-BY-4.0, which asks for attribution to the voice datasets. They are listed in results/rt2_voices.json.
  • Evaluation data. IWSLT/WIT3 TED transcripts are CC-BY-NC-ND-4.0. They were used for measurement only and are not included here.

This is a description, not legal advice.


Files

pathcontents
dewpoint.pyself-contained inference: Punctuator (torch or ONNX backend), streaming, command line
onnx/both members as fp32 ONNX graphs
serve.pya standard-library HTTP server
handler.pythe Hugging Face Inference Endpoints handler
requirements.txt, requirements-onnx.txtdependencies for each backend
ensemble_config.jsonmember list, weights, the ensemble's calibrated biases
mmbert-base/weights (safetensors), encoder config, tokenizer, its own calibration
xlm-roberta-large/the same, for the XLM-R-large member
gazetteer.jsonmixed-case surface forms, per language
results/per-language scores for every system, and round-trip voice provenance
assets/the images on this page

The inference file reproduces the published official-set score exactly, per language, against the evaluation harness it was measured with.

Citation

@misc{dewpoint2026,
  title  = {Dewpoint: multilingual punctuation restoration and truecasing for speech},
  author = {valkayuh},
  year   = {2026},
  url    = {https://huggingface.co/valkayuh/dewpoint}
}

Please also cite the encoders Dewpoint builds on: mmBERT and XLM-RoBERTa.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

В репозитории нет config.json: не понять архитектуру модели.

Ревизия весов
4c45df7

0 моделей