src/PredFinder/inference/EIUtils.cpp
/** 
 *  Given an ElfRelationArg, try to find the SERIF Mention that was its origin.
 *  We do this by finding a SERIF Mention that has matching offsets and is part of the same entity.
 **/
Given an ElfRelationArg, try to find the SERIF Mention that was its origin.
We do this by finding a SERIF Mention that has matching offsets and is part of the same entity.
Given an ElfRelationArg try to find the SERIF Mention that was its origin . We do this by finding a SERIF Mention that has matching offsets and is part of the same entity .
const Mention * EIUtils::findMentionForRelationArg(EIDocData_ptr docData, ElfRelationArg_ptr rel_arg) {
	if (rel_arg->get_individual().get() == NULL)
		return NULL;
	if (!rel_arg->get_individual()->has_entity_id())
		return NULL;
	if (!rel_arg->get_individual()->has_mention_uid())
		return NULL;
	return docData->getMention(rel_arg->get_individual()->get_mention_uid());
}
const Mention * EIUtils :: findMentionForRelationArg ( EIDocData_ptr docData , ElfRelationArg_ptr rel_arg ) { if ( rel_arg -> get_individual ( ) . get ( ) == NULL ) return NULL ; if ( ! rel_arg -> get_individual ( ) -> has_entity_id ( ) ) return NULL ; if ( ! rel_arg -> get_individual ( ) -> has_mention_uid ( ) ) return NULL ; return docData -> getMention ( rel_arg -> get_individual ( ) -> get_mention_uid ( ) ) ; }
Given an ElfRelationArg, try to find the SERIF Mention that was its origin.
Given an ElfRelationArg try to find the SERIF Mention that was its origin .
// Ignore empty arg individual
 // Make sure there's an associated entity and mention
 // Look up by mention ID
