garu-ko 0.9.12 → 0.9.13
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.
|
|
6
|
-
- **
|
|
7
|
-
- **F1 95.8%** on 9k human-verified gold testset (ep_norm), **F1 91.
|
|
5
|
+
- **1.2MB model** bundled in npm package (no CDN needed)
|
|
6
|
+
- **412KB WASM** engine (176KB gzipped) -- runs in any modern browser
|
|
7
|
+
- **F1 95.8%** 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.
|
|
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.
|
|
174
|
+
F1 95.8% 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,
|
|
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/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.
|
|
4
|
-
"description": "Ultra-lightweight Korean morphological analyzer for the web (
|
|
3
|
+
"version": "0.9.13",
|
|
4
|
+
"description": "Ultra-lightweight Korean morphological analyzer for the web (1.2MB model, WASM, F1 95.8% 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-
|
|
159
|
+
import * as import1 from "./snippets/garu-core-311e0dace2b123c4/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-
|
|
218
|
+
"./snippets/garu-core-311e0dace2b123c4/inline0.js": import1,
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
221
|
|
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(); }
|