src/Generic/edt/discmodel/CorefUtils.cpp
/**
 *  @param currSolution the current working EntitySet
 *  @param entity the Entity in question
 *  @param mention the Mention in question
 *  @return false if <code>entity</code> and <code>mention</code>
 *               have both been assigned subtypes and the subtypes
 *               do not match, true otherwise
 */
@param currSolution the current working EntitySet
@param entity the Entity in question
@param mention the Mention in question
@return false if entity and mention
have both been assigned subtypes and the subtypes
do not match, true otherwise
@param currSolution the current working EntitySet @param entity the Entity in question @param mention the Mention in question @return false if entity and mention have both been assigned subtypes and the subtypes do not match true otherwise
bool CorefUtils::subtypeMatch(const EntitySet *currSolution,
						      const Entity *entity, const Mention *mention) 
{
	EntitySubtype entSubtype = currSolution->guessEntitySubtype(entity);
	EntitySubtype mentSubtype = mention->getEntitySubtype();
	if ((entSubtype.isDetermined() && mentSubtype.isDetermined()) && 
		 mentSubtype != entSubtype)
	{
		return false;
	}
	return true;
}
bool CorefUtils :: subtypeMatch ( const EntitySet * currSolution , const Entity * entity , const Mention * mention ) { EntitySubtype entSubtype = currSolution -> guessEntitySubtype ( entity ) ; EntitySubtype mentSubtype = mention -> getEntitySubtype ( ) ; if ( ( entSubtype . isDetermined ( ) && mentSubtype . isDetermined ( ) ) && mentSubtype != entSubtype ) { return false ; } return true ; }
@param currSolution the current working EntitySet
  @param entity the Entity in question
  @param mention the Mention in question
  @return false if <code>entity</code> and <code>mention</code>
               have both been assigned subtypes and the subtypes
               do not match, true otherwise
@param currSolution the current working EntitySet @param entity the Entity in question @param mention the Mention in question @return false if <code > entity< / code > and <code > mention< / code > have both been assigned subtypes and the subtypes do not match true otherwise