code wiki / (root) / nx_depparse_eval.nx

nx_depparse_eval.nx

buildroot/runtime/nx_depparse_eval.nx

2853 B55 linesdepth 5pulls 5 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_depparse_eval.nx -- train the estate's POS tagger and dependency parser (nx_postag, nx_depparse) on a CoNLL-U treebank and report attachment scores on a second one. ONE call: nx_depparse_eval <train.conllu> <test.conllu> [label] The tagger is trained first and the parser reads ITS tags on both splits (one tag generator, no gold-tag optimism). The bar is the published accuracy of feature-based transition parsers on UD English EWT (greedy averaged-perceptron arc-standard parsers read in the middle-to-high eighties UAS; neural parsers read the low nineties); the receipt carries every count so a partial read cannot pass as a whole one. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_reviewmine_lib.nx nx_postag.nx nx_depparse.nx nx_depparse_eval.nx

imports: nx_syscalls.nxnx_reviewmine_lib.nxnx_postag.nxnx_depparse.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main rm_w sys_write rm_slen sys_exit sys_mmap nxa_die sys_write ↻ sys_exit ↻ nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ pt_eval pt_reset sys_mmap ↻ pt_train sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close pt_read_sentence rm_catn pt_tag_id pt_tag_loaded pt_feats pt_fh rm_hash sys_mmap ↻

structs

none

consts

12const DE_ARG_TRAIN: i64 = 1
13const DE_ARG_TEST: i64 = 2
14const DE_ARG_LABEL: i64 = 3
15const DE_EXIT_USAGE: i64 = 2
16const DE_EXIT_NOFILE: i64 = 3

functions

18func main(argc: i64, argv: *i64) -> i64