garu-ko 0.9.12 → 0.9.14

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.4MB model** bundled in npm package (no CDN needed)
6
- - **407KB WASM** engine (175KB gzipped) -- runs in any modern browser
7
- - **F1 95.8%** on 9k human-verified gold testset (ep_norm), **F1 91.0%** on a held-out 2025 spoken-language set
5
+ - **1.2MB model** bundled in npm package (no CDN needed)
6
+ - **412KB WASM** engine (176KB gzipped) -- runs in any modern browser
7
+ - **F1 96.0%** on 9k human-verified gold testset (ep_norm), **F1 91.1%** on a held-out 2025 spoken-language set
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
@@ -165,19 +165,19 @@ await search(db, { term: '먹다' }) // ← matches
165
165
  ## FAQ
166
166
 
167
167
  **What is garu-ko?**
168
- garu-ko (가루/Garu) is a browser-native Korean morphological analyzer. A 1.4MB model and a 407KB WASM engine run entirely in the browser, so it segments Korean text, tags parts of speech, extracts nouns, and tokenizes with no server and no network.
168
+ garu-ko (가루/Garu) is a browser-native Korean morphological analyzer. A 1.2MB model and a 412KB WASM engine run entirely in the browser, so it segments Korean text, tags parts of speech, extracts nouns, and tokenizes with no server and no network.
169
169
 
170
170
  **Does it need a server or API?**
171
171
  No. It runs 100% client-side via WebAssembly. After the initial load there is no backend call, so it works offline and inside browser extensions, service-worker PWAs, and intranet apps.
172
172
 
173
173
  **How accurate is it?**
174
- F1 95.8% on a 9,000-sentence human-verified gold testset (ep_norm), and F1 91.0% on a held-out 2025 spoken-language evaluation set.
174
+ F1 96.0% on a 9,000-sentence human-verified gold testset (ep_norm), and F1 91.1% on a held-out 2025 spoken-language evaluation set.
175
175
 
176
176
  **Which POS tagset does it use?**
177
177
  The Sejong tagset (42 tags) from the National Institute of Korean Language — NNG/NNP for nouns, VV/VA for verbs/adjectives, particles, endings, and symbols.
178
178
 
179
179
  **Does it use a neural network?**
180
- No. It combines a codebook, an eojeol cache, sentence-level N-best trigram Viterbi, and deterministic post-processing rules, so output is deterministic and reproducible.
180
+ No. It combines a codebook, an eojeol cache, sentence-level N-best trigram Viterbi, deterministic post-processing rules, and a linear reranking perceptron — not a neural network — so output is deterministic and reproducible.
181
181
 
182
182
  **Where does it run besides the browser?**
183
183
  The same `npm install garu-ko` works in browser ESM, Node.js 18+, Bun, and Deno with one API.
package/dist/core.js CHANGED
@@ -121,7 +121,7 @@ export class GaruBase {
121
121
  return {
122
122
  version: this._wasm.constructor.version(),
123
123
  size: this._modelSize,
124
- accuracy: 0.958,
124
+ accuracy: 0.960,
125
125
  };
126
126
  }
127
127
  /**
package/models/base.gmdl CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "garu-ko",
3
- "version": "0.9.12",
4
- "description": "Ultra-lightweight Korean morphological analyzer for the web (1MB model, WASM, F1 93.7% NIKL MP)",
3
+ "version": "0.9.14",
4
+ "description": "Ultra-lightweight Korean morphological analyzer for the web (1.2MB model, WASM, F1 96.0% gold testset)",
5
5
  "type": "module",
6
6
  "main": "dist/node.js",
7
7
  "browser": "dist/browser.js",
package/pkg/garu_wasm.js CHANGED
@@ -156,7 +156,7 @@ export class GaruWasm {
156
156
  }
157
157
  }
158
158
  if (Symbol.dispose) GaruWasm.prototype[Symbol.dispose] = GaruWasm.prototype.free;
159
- import * as import1 from "./snippets/garu-core-bc6fa1b18f058e71/inline0.js"
159
+ import * as import1 from "./snippets/garu-core-0ba03e656c326ae4/inline0.js"
160
160
 
161
161
  function __wbg_get_imports() {
162
162
  const import0 = {
@@ -215,7 +215,7 @@ function __wbg_get_imports() {
215
215
  return {
216
216
  __proto__: null,
217
217
  "./garu_wasm_bg.js": import0,
218
- "./snippets/garu-core-bc6fa1b18f058e71/inline0.js": import1,
218
+ "./snippets/garu-core-0ba03e656c326ae4/inline0.js": import1,
219
219
  };
220
220
  }
221
221
 
Binary file
package/pkg/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "garu-wasm",
3
3
  "type": "module",
4
- "version": "0.9.12",
4
+ "version": "0.9.14",
5
5
  "files": [
6
6
  "garu_wasm_bg.wasm",
7
7
  "garu_wasm.js",
@@ -0,0 +1 @@
1
+ export function performance_now() { return performance.now(); }
@@ -0,0 +1 @@
1
+ export function performance_now() { return performance.now(); }