src/Chinese/relations/ch_PotentialRelationCollector.cpp
/** this function deals specifically with lists of type OTH
 *  with children of only one EDT type
 *
 *  for example: in "a boxer and an emigre", we don't get "a boxer" as
 *  a PER, so the list is of type OTH. Same with "Bob, 52," (annoying but true)
 *
 */
this function deals specifically with lists of type OTH
with children of only one EDT type

for example: in "a boxer and an emigre", we don't get "a boxer" as
a PER, so the list is of type OTH. Same with "Bob, 52," (annoying but true)
this function deals specifically with lists of type OTH with children of only one EDT type for example : in " a boxer and an emigre " we don ' t get " a boxer " as a PER so the list is of type OTH . Same with " Bob 52 " ( annoying but true )
void ChinesePotentialRelationCollector::findListInstances(Argument *left, Argument *right,
														 Proposition *prop, bool leftIsList)
{
	const Mention *iter;
	if (leftIsList)
		iter = left->getMention(_mentionSet)->getChild();
	else iter = right->getMention(_mentionSet)->getChild();
	while (iter != 0) {
		if (iter->getEntityType().isRecognized() && _definitions[iter->getIndex()] != 0) {
			if (leftIsList)
				addPotentialRelation(_definitions[iter->getIndex()]->getArg(0), right, prop);
			else addPotentialRelation(left, _definitions[iter->getIndex()]->getArg(0), prop);
		}
		iter = iter->getNext();
	}
}
void ChinesePotentialRelationCollector :: findListInstances ( Argument * left , Argument * right , Proposition * prop , bool leftIsList ) { const Mention * iter ; if ( leftIsList ) iter = left -> getMention ( _mentionSet ) -> getChild ( ) ; else iter = right -> getMention ( _mentionSet ) -> getChild ( ) ; while ( iter != 0 ) { if ( iter -> getEntityType ( ) . isRecognized ( ) && _definitions [ iter -> getIndex ( ) ] != 0 ) { if ( leftIsList ) addPotentialRelation ( _definitions [ iter -> getIndex ( ) ] -> getArg ( 0 ) , right , prop ) ; else addPotentialRelation ( left , _definitions [ iter -> getIndex ( ) ] -> getArg ( 0 ) , prop ) ; } iter = iter -> getNext ( ) ; } }
this function deals specifically with lists of type OTH
  with children of only one EDT type
this function deals specifically with lists of type OTH with children of only one EDT type