src/PredFinder/inference/EITbdAdapter.cpp
/**
 * Get appropriate agent role for this event and argument, e.g. eru:mediatingAgent. 
 * The entity subtype does NOT include a "guessed default", so you must account
 * for UNDET.
 * @example getAgentRole(L"bombing") -> L"eru:mediatingAgent"
 * @example getAgentRole(L"attack") -> L"eru:mediatingAgent"
 * @example getAgentRole(L"killing") -> L"eru:killingHumanAgent"
 * @example getAgentRole(L"junk") -> L""
 *
 * @param tbd_agent_type Name of the agent type from the pattern set
 *
 * @author eboschee@bbn.com
 * @date 2010.12.12
 **/
Get appropriate agent role for this event and argument, e.g. eru:mediatingAgent.
The entity subtype does NOT include a "guessed default", so you must account
for UNDET.

@param tbd_agent_type Name of the agent type from the pattern set


Get appropriate agent role for this event and argument e . g . eru : mediatingAgent . The entity subtype does NOT include a " guessed default " so you must account for UNDET . @param tbd_agent_type Name of the agent type from the pattern set
std::wstring EITbdAdapter::getAgentRole(const std::wstring & tbd_event_type) {
	throw_if_not_initialized();
	StringReplacementMap::const_iterator iter = _agent_role.find(tbd_event_type);
	if (iter == _agent_role.end()) {
		return L"";
	} else {
		return iter->second;
	}
}
std :: wstring EITbdAdapter :: getAgentRole ( const std :: wstring & tbd_event_type ) { throw_if_not_initialized ( ) ; StringReplacementMap :: const_iterator iter = _agent_role . find ( tbd_event_type ) ; if ( iter == _agent_role . end ( ) ) { return L" " ; } else { return iter -> second ; } }
Get appropriate agent role for this event and argument, e.g.
Get appropriate agent role for this event and argument e . g .