src/Generic/theories/EventMention.cpp
// will just return the first one found: used in EELD where there is only one per role type

will just return the first one found: used in EELD where there is only one per role type
will just return the first one found : used in EELD where there is only one per role type
const Mention *EventMention::getFirstMentionForSlot(Symbol slotName) const {
	for (int i = 0; i < (int) _arguments.size(); i++) {
		if (_arguments[i].role == slotName) 
			return _arguments[i].mention;
	}
	return 0;
}
const Mention * EventMention :: getFirstMentionForSlot ( Symbol slotName ) const { for ( int i = 0 ; i < ( int ) _arguments . size ( ) ; i ++ ) { if ( _arguments [ i ] . role == slotName ) return _arguments [ i ] . mention ; } return 0 ; }
will just return the first one found: used in EELD where there is only one per role type
will just return the first one found : used in EELD where there is only one per role type