src/PredFinder/inference/EITbdAdapter.cpp
/**
 * Get appropriate ontology role for this event.
 * @example "bombing" -> "eru:bombing"
 * @example "attack" -> "eru:physicalDamageEvent"
 * @example "junk" -> ""
 *
 * @param tbd_event_type Name of the event type from the pattern set
 *
 * @author eboschee@bbn.com
 * @date 2010.12.12
 **/
Get appropriate ontology role for this event.

@param tbd_event_type Name of the event type from the pattern set


Get appropriate ontology role for this event . @param tbd_event_type Name of the event type from the pattern set
std::wstring EITbdAdapter::getEventRole(const std::wstring & tbd_event_type) {	
	throw_if_not_initialized();
	StringReplacementMap::const_iterator iter = _event_role.find(tbd_event_type);
	if (iter == _event_role.end()) {
		return L"";
	} else {
		return iter->second;
	}
}
std :: wstring EITbdAdapter :: getEventRole ( const std :: wstring & tbd_event_type ) { throw_if_not_initialized ( ) ; StringReplacementMap :: const_iterator iter = _event_role . find ( tbd_event_type ) ; if ( iter == _event_role . end ( ) ) { return L" " ; } else { return iter -> second ; } }
Get appropriate ontology role for this event.
Get appropriate ontology role for this event .