garu-ko 0.2.9 → 0.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/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  **Browser-native Korean morphological analyzer.** No server required.
4
4
 
5
- - **1.8MB model** bundled in npm package (no CDN needed)
5
+ - **2.1MB model** bundled in npm package (no CDN needed)
6
6
  - **93KB WASM** engine -- runs in any modern browser
7
- - **F1 95.5%** on NIKL MP benchmark (vs. Kiwi 87.9%)
7
+ - **F1 90.8%** 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,9 +13,10 @@
13
13
 
14
14
  | | Kiwi | MeCab-ko | garu-ko |
15
15
  |---|---|---|---|
16
- | Model size | ~40MB | ~50MB | **1.8MB** |
16
+ | Model size | ~40MB | ~50MB | **2.1MB** |
17
17
  | npm package | No | No | **Yes** |
18
- | F1 (NIKL MP) | 87.9% | ~85% | **95.5%** |
18
+ | F1 (gold testset) | 89.7% | | **90.8%** |
19
+ | F1 (NIKL MP) | 87.9% | ~85% | 93.5% |
19
20
  | Browser support | Impractical | No | **Yes** |
20
21
 
21
22
  ## 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.9",
3
+ "version": "0.3.0",
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"