src/Generic/edt/discmodel/CorefUtils.cpp
/**
 *  Find the ACE mention level for an Entity.
 *
 *  Note: this method currently only distinguishes 
 *  entities of Mention::NAME level from all others.
 *
 *  @param entitySet the current EntitySet
 *  @param entity the Entity in question
 *  @return Mention::NAME if the entity contains at least
 *          one name Mention, Mention::NONE otherwise
 */
Find the ACE mention level for an Entity.

this method currently only distinguishes
entities of Mention::NAME level from all others.

@param entitySet the current EntitySet
@param entity the Entity in question
@return Mention::NAME if the entity contains at least
one name Mention, Mention::NONE otherwise
Find the ACE mention level for an Entity . this method currently only distinguishes entities of Mention :: NAME level from all others . @param entitySet the current EntitySet @param entity the Entity in question @return Mention :: NAME if the entity contains at least one name Mention Mention :: NONE otherwise
Mention::Type CorefUtils::getEntityMentionLevel(const EntitySet *entitySet, const Entity *entity) {
	size_t n_ments = entity->getNMentions();
	Mention::Type mentType;
	Mention::Type entType = entitySet->getMention(entity->getMention(0))->getMentionType();
	if (entType == Mention::NAME)
		return Mention::NAME;
	for (size_t i=1; i<n_ments; i++) {
		mentType = entitySet->getMention(entity->getMention(i))->getMentionType();
		if (mentType == Mention::NAME) {
			return Mention::NAME;
		}
		if (mentType == Mention::DESC || mentType == Mention::APPO) {
		} else if (mentType>entType && entType != Mention::DESC && entType != Mention::APPO) {
		}
	}
	return Mention::NONE;
}
Mention :: Type CorefUtils :: getEntityMentionLevel ( const EntitySet * entitySet , const Entity * entity ) { size_t n_ments = entity -> getNMentions ( ) ; Mention :: Type mentType ; Mention :: Type entType = entitySet -> getMention ( entity -> getMention ( 0 ) ) -> getMentionType ( ) ; if ( entType == Mention :: NAME ) return Mention :: NAME ; for ( size_t i = 1 ; i < n_ments ; i ++ ) { mentType = entitySet -> getMention ( entity -> getMention ( i ) ) -> getMentionType ( ) ; if ( mentType == Mention :: NAME ) { return Mention :: NAME ; } if ( mentType == Mention :: DESC || mentType == Mention :: APPO ) { } else if ( mentType > entType && entType != Mention :: DESC && entType != Mention :: APPO ) { } } return Mention :: NONE ; }
Find the ACE mention level for an Entity.
Find the ACE mention level for an Entity .
// else
 //			entType = mentType;
 //			entType = mentType;
 // for
