WM Keyboard smart punctuation

Small encoders behind WM Keyboard's smart punctuation key. They read an unfinished sentence and choose a full stop, question mark, exclamation mark or comma. They cover 58 keyboard languages, counting Brazilian Portuguese separately.

This is version 3, in Standard and Large sizes. Both are int8 files in the keyboard's own WMPT format, which Transformers cannot load. The reader is punct.rs, and the training code and per-language results are in tools/wmpunct.

Input starts with <s> <lang:xx>; use <lang:?> for any other language. Held-out accuracy over . ? ! is 87.4% for both sizes across all languages and 93.7% in English. Persian scores .72 with Standard and .73 with Large. In version 2, which used the same data, exclamation-mark recall was only .02. Version 3 still struggles with exclamation marks and with questions worded like statements.

License and credits

The weights are MIT. They were trained on 41.4M examples from Tatoeba (CC BY 2.0 FR, part CC0) and OpenSubtitles 2018 through OPUS (Lison and Tiedemann 2016).

Files

File Bytes SHA-256
smart_punct_v3.wmpt 5,255,848 bb79c3c405a55772439c16094dc756601bf79b701fbc6f6b6064bbd87605a881
smart_punct_v3_large.wmpt 9,476,652 96c98a04d3635a4492aae32ffd8da51ec11ccd9d8cde791097f55d181ff3b383
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support