code wiki / (root) / nx_postag_eval.nx

nx_postag_eval.nx

buildroot/runtime/nx_postag_eval.nx

2085 B43 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_postag_eval.nx -- train the estate's POS tagger (nx_postag) on a CoNLL-U treebank and report token accuracy on a second one. ONE call: nx_postag_eval <train.conllu> <test.conllu> [label] The bar is the published accuracy of feature-based taggers on UD English EWT UPOS (a greedy averaged perceptron with this feature set reads about 93-95 percent in the literature); the receipt carries the sentence and token counts so a partial read cannot pass as a whole one. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_reviewmine_lib.nx nx_postag.nx nx_postag_eval.nx

imports: nx_syscalls.nxnx_reviewmine_lib.nxnx_postag.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

10const PE_ARG_TRAIN: i64 = 1
11const PE_ARG_TEST: i64 = 2
12const PE_ARG_LABEL: i64 = 3
13const PE_EXIT_USAGE: i64 = 2
14const PE_EXIT_NOFILE: i64 = 3

functions

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