src/English/timex/en_TemporalNormalizer.cpp
/* Find the preterminal head node of 'node' and append its tag and head
 * word to tag_chain and word_chain respectively.
 */
Find the preterminal head node of 'node' and append its tag and head
word to tag_chain and word_chain respectively.
Find the preterminal head node of ' node ' and append its tag and head word to tag_chain and word_chain respectively .
void EnglishTemporalNormalizer::addHeadWordAndTagToChain(const SynNode *node, wstring& tag_chain, wstring& word_chain) {
	while (node != 0 && !node->isPreterminal()) {
		node = node->getHead();
	}
	if (node != 0) {
		if (tag_chain.length() != 0) 
			tag_chain = L":" + tag_chain;
		if (word_chain.length() != 0) 
			word_chain = L":" + word_chain;
		tag_chain = node->getTag().to_string() + tag_chain;
		word_chain = node->getHeadWord().to_string() + word_chain;
	}
}
void EnglishTemporalNormalizer :: addHeadWordAndTagToChain ( const SynNode * node , wstring & tag_chain , wstring & word_chain ) { while ( node != 0 && ! node -> isPreterminal ( ) ) { node = node -> getHead ( ) ; } if ( node != 0 ) { if ( tag_chain . length ( ) != 0 ) tag_chain = L" " + tag_chain ; if ( word_chain . length ( ) != 0 ) word_chain = L" " + word_chain ; tag_chain = node -> getTag ( ) . to_string ( ) + tag_chain ; word_chain = node -> getHeadWord ( ) . to_string ( ) + word_chain ; } }
Find the preterminal head node of 'node' and append its tag and head
 word to tag_chain and word_chain respectively.
Find the preterminal head node of ' node ' and append its tag and head word to tag_chain and word_chain respectively .