code wiki / _hdl_build / nx_xlate_mt_gate.nx

nx_xlate_mt_gate.nx

buildroot/runtime/_hdl_build/nx_xlate_mt_gate.nx

7886 B175 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic xlate
docsdependenciesstructsconstsfunctions

about

nx_xlate_mt_gate.nx -- MEASURES the data-driven RU<->EN engine on a HELD-OUT test set. NO fake green: loads knowledge/xlate/{xlate_lex.tsv, xlate_morph_ru.tsv, xlate_testset.tsv}, builds the engine, translates every held-out sentence, and reports unigram PRECISION + RECALL (clipped, per-mille integer, no float) and EXACT-match count -- then re-scores the SAME set through the OLD 16-word nx_ruen_translate stub to prove the leap. verdict GREEN iff the new engine's unigram precision >= 300 per-mille AND strictly beats the old stub.

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_xlate_mt.nx nx_mt_ruen.nx nx_xlate_mt_gate.nx

imports: nx_syscalls.nxnx_xlate_mt.nxnx_mt_ruen.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

10func g_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
11func g_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
12func g_num(v: i64) -> i64
24func g_norm(src: *u8, n: i64, buf: *u8, cap: i64) -> i64
32func g_toks(buf: *u8, n: i64, off: *i64, len: *i64, maxt: i64) -> i64
45func g_teq(b1: *u8, a: i64, la: i64, b2: *u8, bb: i64, lb: i64) -> i64
52func g_field(buf: *u8, n: i64, ip: *i64, fs: *i64, fe: *i64, term: *i64) -> i64
68func g_score(eng: *i64, src: *u8, srcn: i64, dir: i64, gold: *u8, goldn: i64, use_old: i64, acc: *i64) -> i64
109func g_report(name: *u8, acc: *i64, ntest: i64) -> i64
118func main() -> i64