garu-ko 0.2.8 → 0.2.10
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 +4 -4
- package/models/base.gmdl +0 -0
- package/package.json +2 -2
- 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-8bb32ce2ac7b2d7b/inline0.js +1 -0
- package/pkg/snippets/garu-core-d0bd202007f7afa3/inline0.js +1 -0
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
**Browser-native Korean morphological analyzer.** No server required.
|
|
4
4
|
|
|
5
|
-
- **1.
|
|
5
|
+
- **1.8MB model** bundled in npm package (no CDN needed)
|
|
6
6
|
- **93KB WASM** engine -- runs in any modern browser
|
|
7
|
-
- **F1 95.
|
|
7
|
+
- **F1 95.5%** on NIKL MP benchmark (vs. Kiwi 87.9%)
|
|
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,9 +13,9 @@
|
|
|
13
13
|
|
|
14
14
|
| | Kiwi | MeCab-ko | garu-ko |
|
|
15
15
|
|---|---|---|---|
|
|
16
|
-
| Model size | ~40MB | ~50MB | **1.
|
|
16
|
+
| Model size | ~40MB | ~50MB | **1.8MB** |
|
|
17
17
|
| npm package | No | No | **Yes** |
|
|
18
|
-
| F1 (NIKL MP) | 87.9% | ~85% | **95.
|
|
18
|
+
| F1 (NIKL MP) | 87.9% | ~85% | **95.5%** |
|
|
19
19
|
| Browser support | Impractical | No | **Yes** |
|
|
20
20
|
|
|
21
21
|
## Quick Start
|
package/models/base.gmdl
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "garu-ko",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "Ultra-lightweight Korean morphological analyzer for the web (1.7MB model, WASM 93KB, F1 95.3%)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"README.md"
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
|
-
"build:wasm": "wasm-pack build ../crates/garu-wasm --target web --out-dir ../../js/pkg",
|
|
15
|
+
"build:wasm": "wasm-pack build ../crates/garu-wasm --target web --out-dir ../../js/pkg && echo '' > pkg/.gitignore",
|
|
16
16
|
"build:js": "tsc",
|
|
17
17
|
"build": "npm run build:wasm && npm run build:js",
|
|
18
18
|
"test": "vitest run"
|
package/pkg/garu_wasm.js
CHANGED
|
@@ -82,7 +82,7 @@ export class GaruWasm {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
if (Symbol.dispose) GaruWasm.prototype[Symbol.dispose] = GaruWasm.prototype.free;
|
|
85
|
-
import * as import1 from "./snippets/garu-core-
|
|
85
|
+
import * as import1 from "./snippets/garu-core-d0bd202007f7afa3/inline0.js"
|
|
86
86
|
|
|
87
87
|
function __wbg_get_imports() {
|
|
88
88
|
const import0 = {
|
|
@@ -143,7 +143,7 @@ function __wbg_get_imports() {
|
|
|
143
143
|
return {
|
|
144
144
|
__proto__: null,
|
|
145
145
|
"./garu_wasm_bg.js": import0,
|
|
146
|
-
"./snippets/garu-core-
|
|
146
|
+
"./snippets/garu-core-d0bd202007f7afa3/inline0.js": import1,
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
149
|
|
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(); }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function performance_now() { return performance.now(); }
|