code wiki / _hdl_build / nx_mt_ruen.nx

nx_mt_ruen.nx

buildroot/runtime/_hdl_build/nx_mt_ruen.nx

5344 B104 linesdepth 2pulls 2 transitivereach 3 importersview sourcekind librarytopic mt
docsdependenciesstructsconstsfunctions

about

nx_mt_ruen.nx -- sovereign BIDIRECTIONAL RU<->EN phrase-table translator (the Belarus<->Texas pair). Token- level, Cyrillic-aware tokenizer (UTF-8 multibyte bytes >=0x80 are token chars), NO float, deterministic. dir 0 = EN->RU (output Cyrillic), dir 1 = RU->EN. Unknown tokens pass through verbatim (Cardinal 25). Lexicon is edit-here R1 (R2 -> seg_store per language-pair, Cardinal 11); OPEN-DOMAIN neural MT + ASR are the RESEARCHER long-poles (V-NMT-1/V-ASR-1) -- this is the gated, real, bidirectional R1. license_tier: ORIGINAL

dependencies 1 imports · 3 importers

nx_syscalls.nx nx_mt_ruen.nx nx_live_xlate_call.nx nx_live_xlate_call_gate.nx nx_xlate_mt_gate.nx

imports: nx_syscalls.nx

imported by: nx_live_xlate_call.nxnx_live_xlate_call_gate.nxnx_xlate_mt_gate.nx

structs

none

consts

none

functions

8func mr_lc(c: i64) -> i64 { if c >= 65 { if c <= 90 { return c + 32 } } return c }
called by 1: mr_eq_ci
10func mr_is_tok(c: i64) -> i64
called by 1: nx_ruen_translate
18func mr_eq_ci(src: *u8, s: i64, e: i64, key: *u8) -> i64
called by 1: mr_ru_for_en calls 1: mr_lc
29func mr_eq_exact(src: *u8, s: i64, e: i64, key: *u8) -> i64
called by 1: mr_en_for_ru
40func mr_ru_for_en(src: *u8, s: i64, e: i64) -> *u8
called by 1: nx_ruen_translate calls 1: mr_eq_ci
60func mr_en_for_ru(src: *u8, s: i64, e: i64) -> *u8
called by 1: nx_ruen_translate calls 1: mr_eq_exact
77func mr_app(dst: *u8, pos: *i64, cap: i64, s: *u8) -> i64
called by 1: nx_ruen_translate
82func mr_appb(dst: *u8, pos: *i64, cap: i64, b: i64) -> i64 { let p: i64 = *pos; if p < cap { dst[p]=b as u8; *pos=p+1 } return 0 }
called by 1: nx_ruen_translate
85func nx_ruen_translate(src: *u8, n: i64, dir: i64, dst: *u8, cap: i64) -> i64