wasi-master commited on
Commit
d05cb62
·
verified ·
1 Parent(s): e84aa94

Add model files, card and licenses

Browse files
Files changed (5) hide show
  1. .gitattributes +2 -0
  2. LICENSE +21 -0
  3. README.md +25 -0
  4. smart_punct_v3.wmpt +3 -0
  5. smart_punct_v3_large.wmpt +3 -0
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ smart_punct_v3.wmpt filter=lfs diff=lfs merge=lfs -text
37
+ smart_punct_v3_large.wmpt filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Wasi Master
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
README.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language: [af, ar, az, bg, bn, bs, ca, cs, da, de, el, en, eo, es, et, eu, fa, fi, fr, gl, he, hi, hr, hu, hy, id, is, it, ka, kk, lt, lv, mk, ml, mr, ms, "no", nl, pl, pt, ro, ru, si, sk, sl, sq, sr, sv, sw, ta, te, tl, tr, uk, ur, uz, vi]
4
+ pipeline_tag: text-classification
5
+ tags: [wmkeyboard, punctuation, keyboard, on-device]
6
+ ---
7
+
8
+ # WM Keyboard smart punctuation
9
+
10
+ Small encoders behind [WM Keyboard](https://github.com/wasi-master/wmkeyboard)'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.
11
+
12
+ 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`](https://github.com/wasi-master/wmkeyboard/blob/main/native/wm-engine/src/punct.rs), and the training code and per-language results are in [`tools/wmpunct`](https://github.com/wasi-master/wmkeyboard/tree/main/tools/wmpunct).
13
+
14
+ 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.
15
+
16
+ ## License and credits
17
+
18
+ The weights are MIT. They were trained on 41.4M examples from [Tatoeba](https://tatoeba.org/) (CC BY 2.0 FR, part CC0) and [OpenSubtitles](https://www.opensubtitles.org/) 2018 through [OPUS](https://opus.nlpl.eu/) (Lison and Tiedemann 2016).
19
+
20
+ ## Files
21
+
22
+ | File | Bytes | SHA-256 |
23
+ |---|---:|---|
24
+ | `smart_punct_v3.wmpt` | 5,255,848 | `bb79c3c405a55772439c16094dc756601bf79b701fbc6f6b6064bbd87605a881` |
25
+ | `smart_punct_v3_large.wmpt` | 9,476,652 | `96c98a04d3635a4492aae32ffd8da51ec11ccd9d8cde791097f55d181ff3b383` |
smart_punct_v3.wmpt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb79c3c405a55772439c16094dc756601bf79b701fbc6f6b6064bbd87605a881
3
+ size 5255848
smart_punct_v3_large.wmpt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96c98a04d3635a4492aae32ffd8da51ec11ccd9d8cde791097f55d181ff3b383
3
+ size 9476652