garu-ko 0.8.0 → 0.8.1
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/README.md +7 -7
- package/dist/core.js +1 -1
- package/models/base.gmdl +0 -0
- package/package.json +1 -1
- package/pkg/garu_wasm.js +2 -2
- package/pkg/garu_wasm_bg.wasm +0 -0
- package/pkg/package.json +1 -1
- package/pkg/snippets/garu-core-0a2f508caf98b80c/inline0.js +1 -0
package/README.md
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
**Browser-native Korean morphological analyzer.** No server required.
|
|
4
4
|
|
|
5
|
-
- **
|
|
6
|
-
- **
|
|
7
|
-
- **F1
|
|
8
|
-
-
|
|
5
|
+
- **1MB model** bundled in npm package (no CDN needed)
|
|
6
|
+
- **332KB WASM** engine (152KB gzipped) -- runs in any modern browser
|
|
7
|
+
- **F1 93.97%** on human-verified gold testset (vs. Kiwi 89.7%)
|
|
8
|
+
- **~1ms** inference per sentence
|
|
9
9
|
- **Offline-ready** -- works without network
|
|
10
10
|
- **[Live Demo](https://garu.zerry.co.kr)** -- try it in your browser
|
|
11
11
|
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
|
|
14
14
|
| | Kiwi | MeCab-ko | garu-ko |
|
|
15
15
|
|---|---|---|---|
|
|
16
|
-
| Model size | ~40MB | ~50MB | **
|
|
16
|
+
| Model size | ~40MB | ~50MB | **1MB** |
|
|
17
17
|
| npm package | No | No | **Yes** |
|
|
18
|
-
| F1 (gold testset) | 89.7% | — | **
|
|
19
|
-
| F1 (NIKL MP) | 87.9% | ~85% | **93.
|
|
18
|
+
| F1 (gold testset) | 89.7% | — | **93.97%** |
|
|
19
|
+
| F1 (NIKL MP) | 87.9% | ~85% | **93.90%** |
|
|
20
20
|
| Browser support | Impractical | No | **Yes** |
|
|
21
21
|
|
|
22
22
|
## Quick Start
|
package/dist/core.js
CHANGED
package/models/base.gmdl
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/pkg/garu_wasm.js
CHANGED
|
@@ -118,7 +118,7 @@ export class GaruWasm {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
if (Symbol.dispose) GaruWasm.prototype[Symbol.dispose] = GaruWasm.prototype.free;
|
|
121
|
-
import * as import1 from "./snippets/garu-core-
|
|
121
|
+
import * as import1 from "./snippets/garu-core-0a2f508caf98b80c/inline0.js"
|
|
122
122
|
|
|
123
123
|
function __wbg_get_imports() {
|
|
124
124
|
const import0 = {
|
|
@@ -177,7 +177,7 @@ function __wbg_get_imports() {
|
|
|
177
177
|
return {
|
|
178
178
|
__proto__: null,
|
|
179
179
|
"./garu_wasm_bg.js": import0,
|
|
180
|
-
"./snippets/garu-core-
|
|
180
|
+
"./snippets/garu-core-0a2f508caf98b80c/inline0.js": import1,
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
183
|
|
package/pkg/garu_wasm_bg.wasm
CHANGED
|
Binary file
|
package/pkg/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function performance_now() { return performance.now(); }
|