nx_absa_seqextract.nx
buildroot/runtime/nx_absa_seqextract.nx
about
nx_absa_seqextract.nx -- rung IM28: train the averaged structured perceptron (nx_absa_seq) on a SemEval TRAIN
split and score aspect-term extraction on the TEST split. ONE call:
nx_absa_seqextract <train.seg> <test.seg> [label]
Prints P, R and F1 in permil with the counts beside the published winners, so the distance to SOTA is visible.
license_tier: ORIGINAL No hw writes (Rule 26).
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_reviewmine_lib.nxnx_absa_lib.nxnx_absa_seq.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 11 | const SE_ARG_TRAIN: i64 = 1 |
| 12 | const SE_ARG_TEST: i64 = 2 |
| 13 | const SE_ARG_LABEL: i64 = 3 |
| 14 | const SE_ARG_TREEBANK: i64 = 4 // optional: a CoNLL-U treebank -> POS and parse features on |
| 15 | const SE_ARG_MODE: i64 = 5 // optional: parse -> add the parser's features on top of the tagger (off by default, |
| 17 | const SE_MODE_PARSE: *u8 = "parse" |
| 18 | const SE_MODE_PARSE_LEN: i64 = 5 |
| 19 | const SE_MODE_NOPARSE: *u8 = "noparse" |
| 20 | const SE_MODE_NOPARSE_LEN: i64 = 7 |
| 21 | const SE_MODE_SHUFFLE: *u8 = "shuffle" // per-epoch shuffle of the training groups (off by default: measured a non-result) |
| 22 | const SE_MODE_SHUFFLE_LEN: i64 = 7 |
| 23 | const SE_MODE_CLUSTERS: *u8 = "clusters" // PPMI word-cluster features from the estate's own model (off until measured) |
| 24 | const SE_MODE_CLUSTERS_LEN: i64 = 8 |
| 25 | const SE_CLUST_MODEL: *u8 = "knowledge/index/semppmi_v1.bin" // the ONE PPMI model nx_semppmi_build maintains |
| 26 | const SE_MODE_CRF: *u8 = "crf" // the conditional log-likelihood objective (off until measured) |
| 27 | const SE_MODE_CRF_LEN: i64 = 3 |
| 28 | const SE_MODE_EMBED: *u8 = "embed" // dense embedding coordinate features from the estate's own table (off until measured) |
| 29 | const SE_MODE_EMBED_LEN: i64 = 5 |
| 30 | const SE_EMB_MODEL: *u8 = "knowledge/index/embed_v1.bin" // the ONE embedding table nx_embed_train writes |
| 31 | const SE_EXIT_USAGE: i64 = 2 |
| 32 | const SE_EXIT_NOGOLD: i64 = 3 |
| 33 | const SE_WIN_REST: i64 = 840 // DLIREC 84.01 |
| 34 | const SE_WIN_LAP: i64 = 745 // IHS RD 74.55 |
functions
| 36 | func main(argc: i64, argv: *i64) -> i64 |