garu-ko 0.11.0 → 0.12.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
- - **1.26MB model** bundled in npm package (no CDN needed)
6
- - **425KB WASM** engine (182KB gzipped) -- runs in any modern browser
7
- - **F1 96.05%** on 9k human-verified gold testset (ep_norm), **F1 91.23%** on a fixed 2025 spoken-language set
5
+ - **1.34MB model** bundled in npm package (no CDN needed)
6
+ - **447KB WASM** engine (182KB gzipped) -- runs in any modern browser
7
+ - **F1 96.18%** on 9k human-verified gold testset (ep_norm), **F1 92.09%** on a fixed 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
@@ -206,13 +206,13 @@ await search(db, { term: '먹다' }) // ← matches
206
206
  ## FAQ
207
207
 
208
208
  **What is garu-ko?**
209
- garu-ko (가루/Garu) is a browser-native Korean morphological analyzer. A 1.26MB model and a 425KB 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.
209
+ garu-ko (가루/Garu) is a browser-native Korean morphological analyzer. A 1.34MB model and a 447KB 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.
210
210
 
211
211
  **Does it need a server or API?**
212
212
  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.
213
213
 
214
214
  **How accurate is it?**
215
- F1 96.05% on a 9,000-sentence human-verified gold testset (ep_norm), and F1 91.23% on a fixed 2025 spoken-language evaluation set.
215
+ F1 96.18% on a 9,000-sentence human-verified gold testset (ep_norm), and F1 92.09% on a fixed 2025 spoken-language evaluation set.
216
216
 
217
217
  **Which POS tagset does it use?**
218
218
  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.
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.9605,
124
+ accuracy: 0.9618,
125
125
  };
126
126
  }
127
127
  /**
package/dist/node.js CHANGED
@@ -15,7 +15,7 @@ export class Garu extends GaruBase {
15
15
  const { join, dirname } = await import('path');
16
16
  const dir = dirname(fileURLToPath(import.meta.url));
17
17
  const wasmBytes = await readFile(join(dir, '..', 'pkg', 'garu_wasm_bg.wasm'));
18
- await wasmModule.default(wasmBytes);
18
+ await wasmModule.default({ module_or_path: wasmBytes });
19
19
  let modelBytes;
20
20
  if (options?.modelData) {
21
21
  modelBytes = new Uint8Array(options.modelData);
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.11.0",
3
+ "version": "0.12.1",
4
4
  "description": "Ultra-lightweight Korean morphological analyzer for the web (1.26MB model, WASM, F1 96.05% gold testset)",
5
5
  "type": "module",
6
6
  "main": "dist/node.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-4cd6f92ead9d35cd/inline0.js"
159
+ import * as import1 from "./snippets/garu-core-d53f41d4d9218de8/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-4cd6f92ead9d35cd/inline0.js": import1,
218
+ "./snippets/garu-core-d53f41d4d9218de8/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.11.0",
4
+ "version": "0.12.1",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
7
7
  "garu_wasm_bg.wasm",
@@ -1 +0,0 @@
1
- export function performance_now() { return performance.now(); }