@mailwoman/sentencepiece-wasm 9.2.0 → 9.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binding.cpp +1 -1
- package/package.json +15 -1
package/binding.cpp
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
6
|
* Embind wrapper for google/sentencepiece v0.2.2 — the mailwoman tokenizer's WASM core (task #26,
|
|
7
|
-
* the SP 0.2.2 native-offsets
|
|
7
|
+
* the SP 0.2.2 native-offsets change from the 2026-07-30 Latin tokenizer survey).
|
|
8
8
|
*
|
|
9
9
|
* Why this exists: the previous runtime (`@sctg/sentencepiece-js`, an emscripten build of an older
|
|
10
10
|
* sentencepiece) exposed pieces + ids but never bound the offset-carrying proto API, forcing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailwoman/sentencepiece-wasm",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.3.0",
|
|
4
4
|
"description": "google/sentencepiece v0.2.2 compiled to WASM with a native-offsets binding — the tokenizer core for @mailwoman/neural. Single-file ESM (wasm embedded), no runtime deps; per-piece byte offsets come from SentencePiece itself instead of TS-side reconstruction.",
|
|
5
5
|
"license": "AGPL-3.0-only OR LicenseRef-Commercial",
|
|
6
6
|
"repository": {
|
|
@@ -16,6 +16,13 @@
|
|
|
16
16
|
"!test/**"
|
|
17
17
|
],
|
|
18
18
|
"type": "module",
|
|
19
|
+
"imports": {
|
|
20
|
+
"#*": {
|
|
21
|
+
"types": "./out/*.d.ts",
|
|
22
|
+
"node": "./out/*.js",
|
|
23
|
+
"default": "./out/*.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
19
26
|
"exports": {
|
|
20
27
|
"./package.json": "./package.json",
|
|
21
28
|
".": {
|
|
@@ -30,6 +37,13 @@
|
|
|
30
37
|
"types": "./index.d.ts",
|
|
31
38
|
"default": "./sentencepiece.mjs"
|
|
32
39
|
}
|
|
40
|
+
},
|
|
41
|
+
"imports": {
|
|
42
|
+
"#*": {
|
|
43
|
+
"types": "./out/*.d.ts",
|
|
44
|
+
"node": "./out/*.js",
|
|
45
|
+
"default": "./out/*.js"
|
|
46
|
+
}
|
|
33
47
|
}
|
|
34
48
|
}
|
|
35
49
|
}
|