garu-ko 0.14.0 → 0.15.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 +5 -5
- package/dist/core.js +1 -1
- package/models/base.gmdl +0 -0
- package/package.json +2 -2
- package/pkg/garu_wasm.js +2 -2
- package/pkg/garu_wasm_bg.wasm +0 -0
- package/pkg/package.json +1 -1
- /package/pkg/snippets/{garu-core-ebaf5956ee45f13f → garu-core-f7eeaeb9b8eaab66}/inline0.js +0 -0
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 96.
|
|
5
|
+
- **1.51MB model** bundled in npm package (no CDN needed)
|
|
6
|
+
- **473KB WASM** engine (202KB gzipped) -- runs in any modern browser
|
|
7
|
+
- **F1 96.22%** on the 9,000-sentence v15k gold set (ep_norm), **F1 92.42%** 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
|
|
@@ -216,13 +216,13 @@ await search(db, { term: '먹다' }) // ← matches
|
|
|
216
216
|
## FAQ
|
|
217
217
|
|
|
218
218
|
**What is garu-ko?**
|
|
219
|
-
garu-ko (가루/Garu) is a browser-native Korean morphological analyzer. A 1.
|
|
219
|
+
garu-ko (가루/Garu) is a browser-native Korean morphological analyzer. A 1.51MB model and a 473KB 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.
|
|
220
220
|
|
|
221
221
|
**Does it need a server or API?**
|
|
222
222
|
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.
|
|
223
223
|
|
|
224
224
|
**How accurate is it?**
|
|
225
|
-
F1 96.
|
|
225
|
+
F1 96.22% on a 9,000-sentence v15k gold set (ep_norm), and F1 92.42% on a fixed 2025 spoken-language evaluation set.
|
|
226
226
|
|
|
227
227
|
**Which POS tagset does it use?**
|
|
228
228
|
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
|
@@ -124,7 +124,7 @@ export class GaruBase {
|
|
|
124
124
|
return {
|
|
125
125
|
version: this._wasm.constructor.version(),
|
|
126
126
|
size: this._modelSize,
|
|
127
|
-
accuracy: this.promiseEndings === 'legacy' ? 0.
|
|
127
|
+
accuracy: this.promiseEndings === 'legacy' ? 0.9623 : 0.9622,
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
130
|
/**
|
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.
|
|
4
|
-
"description": "Ultra-lightweight Korean morphological analyzer for the web (1.
|
|
3
|
+
"version": "0.15.0",
|
|
4
|
+
"description": "Ultra-lightweight Korean morphological analyzer for the web (1.51MB model, WASM, F1 96.22% gold testset)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/node.js",
|
|
7
7
|
"browser": "dist/browser.js",
|
package/pkg/garu_wasm.js
CHANGED
|
@@ -159,7 +159,7 @@ export class GaruWasm {
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
if (Symbol.dispose) GaruWasm.prototype[Symbol.dispose] = GaruWasm.prototype.free;
|
|
162
|
-
import * as import1 from "./snippets/garu-core-
|
|
162
|
+
import * as import1 from "./snippets/garu-core-f7eeaeb9b8eaab66/inline0.js"
|
|
163
163
|
|
|
164
164
|
function __wbg_get_imports() {
|
|
165
165
|
const import0 = {
|
|
@@ -218,7 +218,7 @@ function __wbg_get_imports() {
|
|
|
218
218
|
return {
|
|
219
219
|
__proto__: null,
|
|
220
220
|
"./garu_wasm_bg.js": import0,
|
|
221
|
-
"./snippets/garu-core-
|
|
221
|
+
"./snippets/garu-core-f7eeaeb9b8eaab66/inline0.js": import1,
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
224
|
|
package/pkg/garu_wasm_bg.wasm
CHANGED
|
Binary file
|
package/pkg/package.json
CHANGED
|
File without changes
|