garu-ko 0.5.4 → 0.6.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
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
**Browser-native Korean morphological analyzer.** No server required.
|
|
4
4
|
|
|
5
|
-
- **
|
|
5
|
+
- **1.6MB model** bundled in npm package (no CDN needed)
|
|
6
6
|
- **93KB WASM** engine -- runs in any modern browser
|
|
7
|
-
- **F1
|
|
7
|
+
- **F1 91.1%** on human-verified gold testset (vs. Kiwi 89.7%)
|
|
8
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
|
|
@@ -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 | **1.6MB** |
|
|
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% | — | **91.1%** |
|
|
19
|
+
| F1 (NIKL MP) | 87.9% | ~85% | **93.7%** |
|
|
20
20
|
| Browser support | Impractical | No | **Yes** |
|
|
21
21
|
|
|
22
22
|
## Quick Start
|
package/models/base.gmdl
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/pkg/garu_wasm.js
CHANGED
|
@@ -85,7 +85,7 @@ export class GaruWasm {
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
if (Symbol.dispose) GaruWasm.prototype[Symbol.dispose] = GaruWasm.prototype.free;
|
|
88
|
-
import * as import1 from "./snippets/garu-core-
|
|
88
|
+
import * as import1 from "./snippets/garu-core-b3f617bbdff15d84/inline0.js"
|
|
89
89
|
|
|
90
90
|
function __wbg_get_imports() {
|
|
91
91
|
const import0 = {
|
|
@@ -146,7 +146,7 @@ function __wbg_get_imports() {
|
|
|
146
146
|
return {
|
|
147
147
|
__proto__: null,
|
|
148
148
|
"./garu_wasm_bg.js": import0,
|
|
149
|
-
"./snippets/garu-core-
|
|
149
|
+
"./snippets/garu-core-b3f617bbdff15d84/inline0.js": import1,
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
|
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(); }
|