link-grammar-5.8.0/link-grammar/parse/prune.c
/**
 * Returns TRUE iff there is a connector name in the sentence
 * that can create a link x such that post_process_match(pp_link, x) is TRUE.
 * subscr is a pointer into pp_link that indicates the position of the
 * connector subscr that is tested.
 */
Returns TRUE iff there is a connector name in the sentence
that can create a link x such that post_process_match(pp_link, x) is TRUE.
subscr is a pointer into pp_link that indicates the position of the
connector subscr that is tested.
Returns TRUE iff there is a connector name in the sentence that can create a link x such that post_process_match ( pp_link x ) is TRUE . subscr is a pointer into pp_link that indicates the position of the connector subscr that is tested .
static bool match_in_cms_table(multiset_table *cmt, const char *pp_link,
                               const char *subscr)
{
	unsigned int h = cms_hash(pp_link);
	bool found = false;
	for (Cms *cms = cmt->cms_table[h]; cms != NULL; cms = cms->next)
	{
		if (cms->c->nearest_word == BAD_WORD) continue;
		if (can_form_link(pp_link, connector_string(cms->c), subscr))
		{
			ppdebug("MATCHED %s%s\n", connector_string(cms->c),connector_signs(cms));
			cms->last_criterion = true;
			found = true;
			continue;
		}
		ppdebug("NOT-MATCHED %s%s\n", connector_string(cms->c),connector_signs(cms));
	}
	return found;
}
static bool match_in_cms_table ( multiset_table * cmt , const char * pp_link , const char * subscr ) { unsigned int h = cms_hash ( pp_link ) ; bool found = false ; for ( Cms * cms = cmt -> cms_table [ h ] ; cms != NULL ; cms = cms -> next ) { if ( cms -> c -> nearest_word == BAD_WORD ) continue ; if ( can_form_link ( pp_link , connector_string ( cms -> c ) , subscr ) ) { ppdebug ( " \n " , connector_string ( cms -> c ) , connector_signs ( cms ) ) ; cms -> last_criterion = true ; found = true ; continue ; } ppdebug ( " \n " , connector_string ( cms -> c ) , connector_signs ( cms ) ) ; } return found ; }
Returns TRUE iff there is a connector name in the sentence
 that can create a link x such that post_process_match(pp_link, x) is TRUE.
Returns TRUE iff there is a connector name in the sentence that can create a link x such that post_process_match ( pp_link x ) is TRUE .