garu-ko 0.8.0 → 0.8.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,10 +2,10 @@
2
2
 
3
3
  **Browser-native Korean morphological analyzer.** No server required.
4
4
 
5
- - **1.9MB model** bundled in npm package (no CDN needed)
6
- - **93KB WASM** engine -- runs in any modern browser
7
- - **F1 91.1%** on human-verified gold testset (vs. Kiwi 89.7%)
8
- - **< 1ms** inference per sentence
5
+ - **1MB model** bundled in npm package (no CDN needed)
6
+ - **332KB WASM** engine (152KB gzipped) -- runs in any modern browser
7
+ - **F1 93.97%** on human-verified gold testset (vs. Kiwi 89.7%)
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
11
11
 
@@ -13,10 +13,10 @@
13
13
 
14
14
  | | Kiwi | MeCab-ko | garu-ko |
15
15
  |---|---|---|---|
16
- | Model size | ~40MB | ~50MB | **1.9MB** |
16
+ | Model size | ~40MB | ~50MB | **1MB** |
17
17
  | npm package | No | No | **Yes** |
18
- | F1 (gold testset) | 89.7% | — | **91.1%** |
19
- | F1 (NIKL MP) | 87.9% | ~85% | **93.7%** |
18
+ | F1 (gold testset) | 89.7% | — | **93.97%** |
19
+ | F1 (NIKL MP) | 87.9% | ~85% | **93.90%** |
20
20
  | Browser support | Impractical | No | **Yes** |
21
21
 
22
22
  ## Quick Start
package/dist/core.js CHANGED
@@ -81,7 +81,7 @@ export class GaruBase {
81
81
  return {
82
82
  version: this._wasm.constructor.version(),
83
83
  size: this._modelSize,
84
- accuracy: 0.939,
84
+ accuracy: 0.94,
85
85
  };
86
86
  }
87
87
  /**
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.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Ultra-lightweight Korean morphological analyzer for the web (1.9MB model, WASM, F1 93.9%)",
5
5
  "type": "module",
6
6
  "main": "dist/node.js",
package/pkg/garu_wasm.js CHANGED
@@ -118,7 +118,7 @@ export class GaruWasm {
118
118
  }
119
119
  }
120
120
  if (Symbol.dispose) GaruWasm.prototype[Symbol.dispose] = GaruWasm.prototype.free;
121
- import * as import1 from "./snippets/garu-core-3f8b0a7607e8c8ca/inline0.js"
121
+ import * as import1 from "./snippets/garu-core-0a2f508caf98b80c/inline0.js"
122
122
 
123
123
  function __wbg_get_imports() {
124
124
  const import0 = {
@@ -177,7 +177,7 @@ function __wbg_get_imports() {
177
177
  return {
178
178
  __proto__: null,
179
179
  "./garu_wasm_bg.js": import0,
180
- "./snippets/garu-core-3f8b0a7607e8c8ca/inline0.js": import1,
180
+ "./snippets/garu-core-0a2f508caf98b80c/inline0.js": import1,
181
181
  };
182
182
  }
183
183
 
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.8.0",
4
+ "version": "0.8.1",
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(); }