void build_current_linkage(Parse_info * pi) { /* This function takes the "current" point in the given set and generates the linkage that it represents. */ initialize_links(pi); build_current_linkage_recursive(pi, pi->parse_set); }
/** * Generate the list of all links of the index'th parsing of the * sentence. For this to work, you must have already called parse, and * already built the whole_set. */ void extract_links(int index, int cost, Parse_info pi) { initialize_links(pi); pi->rand_state = index; if (index < 0) { list_random_links(pi, pi->parse_set); } else { list_links(pi, pi->parse_set, index); } }
void extract_links(int index, int cost, Parse_info * pi) { /* Generate the list of all links of the indexth parsing of the sentence. For this to work, you must have already called parse, and already built the whole_set. */ initialize_links(pi); if (index < 0) { my_random_initialize(index); list_random_links(pi, pi->parse_set); my_random_finalize(); } else { list_links(pi, pi->parse_set, index); } }
/** * This function takes the "current" point in the given set and * generates the linkage that it represents. */ void build_current_linkage(Parse_info pi) { initialize_links(pi); build_current_linkage_recursive(pi, pi->parse_set); }