src/Generic/events/stat/EventArgumentFinder.cpp
// helper function to generate a vector of <ValueMention, event-aa-role> pairs

helper function to generate a vector of  pairs
helper function to generate a vector of pairs
std::vector<EventArgumentFinder::ValueMentionRolePair> EventArgumentFinder::getValueMentionRolePairs(EventMentionSet *eset) {
	std::vector<ValueMentionRolePair> results;
	for(int emIndex=0; emIndex<eset->getNEventMentions(); emIndex++) {
		EventMention *em = eset->getEventMention(emIndex);
		for(int argIndex=0; argIndex<em->getNValueArgs(); argIndex++) {
			const ValueMention *arg = em->getNthArgValueMention(argIndex);
			Symbol role = em->getNthArgValueRole(argIndex);
			results.push_back( std::pair<const ValueMention*, Symbol>(arg, role) );
		}
	}
	return results;
}
std :: vector < EventArgumentFinder :: ValueMentionRolePair > EventArgumentFinder :: getValueMentionRolePairs ( EventMentionSet * eset ) { std :: vector < ValueMentionRolePair > results ; for ( int emIndex = 0 ; emIndex < eset -> getNEventMentions ( ) ; emIndex ++ ) { EventMention * em = eset -> getEventMention ( emIndex ) ; for ( int argIndex = 0 ; argIndex < em -> getNValueArgs ( ) ; argIndex ++ ) { const ValueMention * arg = em -> getNthArgValueMention ( argIndex ) ; Symbol role = em -> getNthArgValueRole ( argIndex ) ; results . push_back ( std :: pair < const ValueMention * , Symbol > ( arg , role ) ) ; } } return results ; }
helper function to generate a vector of <ValueMention, event-aa-role> pairs
helper function to generate a vector of <ValueMention event - aa - role > pairs