code wiki / _hdl_build / nx_research_relation_clean.nx

nx_research_relation_clean.nx

buildroot/runtime/_hdl_build/nx_research_relation_clean.nx

7822 B180 linesdepth 3pulls 3 transitivereach 7 importersview sourcekind librarytopic research
docsdependenciesstructsconstsfunctions

about

nx_research_relation_clean.nx -- Researcher EXTRACT, rung 3: CLAIM CLEANUP. The measured noise from rung 2 (pronoun subjects, "[1]"/"^" citation markers, "Wikipedia(R) trademark" boilerplate, junk) is fixed here -- by IMPROVING the claims, not by stripping the feature. Inspectable + data-driven (stopword / pronoun / boilerplate tables). nx_claim_clean(subj,obj -> clean) -> 1 good / 0 reject. license_tier: ORIGINAL.

dependencies 2 imports · 3 importers

nx_syscalls.nx nx_research_extract.nx nx_research_relation_clean.nx nx_research_landscape.nx nx_research_relation_clean_test.nx nx_research_relations.nx

imports: nx_syscalls.nxnx_research_extract.nx

imported by: nx_research_landscape.nxnx_research_relation_clean_test.nxnx_research_relations.nx

structs

none

consts

none

functions

11func cl_is_alpha(c: u8) -> i64
called by 1: cl_is_alnum
16func cl_is_alnum(c: u8) -> i64
called by 1: cl_copy_from_alpha calls 1: cl_is_alpha
21func cl_strlen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
23func cl_max_subj_words() -> i64 { return 6 }
called by 1: nx_claim_clean
24func cl_word_count(s: *u8) -> i64
called by 1: nx_claim_clean
32func cl_streq(a: *u8, b: *u8) -> i64
called by 1: tc
37func cl_lc(c: u8) -> u8 { if c >= (65 as u8) { if c <= (90 as u8) { return (c + 32) as u8 } } return c }
called by 1: cl_streq_ci
39func cl_streq_ci(a: *u8, b: *u8) -> i64
46func cl_first_token(s: *u8, tok: *u8) -> i64
54func cl_is_stopword(t: *u8) -> i64
called by 1: cl_clean_subject calls 1: cl_streq_ci
69func cl_is_pronoun(t: *u8) -> i64
called by 1: nx_claim_clean calls 1: cl_streq_ci
79func cl_boiler(s: *u8) -> i64
called by 1: nx_claim_clean calls 2: cl_strlenre_find
91func cl_drop_first_token(out: *u8, tl: i64) -> i64
called by 1: cl_clean_subject
103func cl_copy_from_alpha(src: *u8, out: *u8) -> i64
116func cl_clean_subject(src: *u8, out: *u8) -> i64
129func cl_is_verb(t: *u8) -> i64
called by 1: nx_claim_clean calls 1: cl_streq_ci
167func nx_claim_clean(subj_in: *u8, obj_in: *u8, subj_out: *u8, obj_out: *u8) -> i64