src/PredFinder/inference/EITbdAdapter.cpp
/**
 * Get appropriate ontology type for this event e.g. ic:Bombing. 
 *
 * @param tbd_event_type Name of the event type from the pattern set
 * @param has_agent Whether this event has an agent
 *
 * @author eboschee@bbn.com
 * @date 2010.12.12
 **/
Get appropriate ontology type for this event e.g. ic:Bombing.

@param tbd_event_type Name of the event type from the pattern set
@param has_agent Whether this event has an agent


Get appropriate ontology type for this event e . g . ic : Bombing . @param tbd_event_type Name of the event type from the pattern set @param has_agent Whether this event has an agent
std::wstring EITbdAdapter::getEventType(const std::wstring & tbd_event_type, bool has_agent) {
	throw_if_not_initialized();
	if (tbd_event_type.compare(L"generic_violence") == 0)
		return L"NONE"; 
	if (tbd_event_type.compare(L"bombing") == 0)
		return L"ic:Bombing";
	if (tbd_event_type.compare(L"attack") == 0)
		return L"ic:HumanAgentPhysicallyAttacking";
	if (tbd_event_type.compare(L"killing") == 0) {
		if (has_agent)
			return L"ic:HumanAgentKillingAPerson";
		else return L"ic:HumanKillingEvent";
	}
	if (tbd_event_type.compare(L"injury") == 0) {
		if (has_agent)
			return L"ic:HumanAgentInjuringAPerson";
		else return L"ic:HumanInjuryEvent";
	}
	return L"";
}
std :: wstring EITbdAdapter :: getEventType ( const std :: wstring & tbd_event_type , bool has_agent ) { throw_if_not_initialized ( ) ; if ( tbd_event_type . compare ( L" " ) == 0 ) return L" " ; if ( tbd_event_type . compare ( L" " ) == 0 ) return L" " ; if ( tbd_event_type . compare ( L" " ) == 0 ) return L" " ; if ( tbd_event_type . compare ( L" " ) == 0 ) { if ( has_agent ) return L" " ; else return L" " ; } if ( tbd_event_type . compare ( L" " ) == 0 ) { if ( has_agent ) return L" " ; else return L" " ; } return L" " ; }
Get appropriate ontology type for this event e.g.
Get appropriate ontology type for this event e . g .
// not an actual IC class; used to get dates and locations for real attacks
