src/Generic/Cbrne/results/CBRNEResultCollector.cpp
// determines whether "mention" is part of printed output
// for unlinked mentions: this function is also used to determine whether to output a new
// entity for this mention

determines whether "mention" is part of printed output
for unlinked mentions: this function is also used to determine whether to output a new
entity for this mention
determines whether " mention " is part of printed output for unlinked mentions : this function is also used to determine whether to output a new entity for this mention
bool CBRNEResultCollector::isValidEntityMention(const Mention *mention) {
	if(isLinkedEntityMention(mention))
		return (isValidEntity(
				   _docTheory->getEntitySet()->getEntityByMention(mention->getUID())) &&
		        mention->getMentionType() != Mention::LIST &&
				mention->getMentionType() != Mention::NONE &&
				mention->getMentionType() != Mention::APPO);
	else
		return (mention->getMentionType() != Mention::LIST &&
				mention->getMentionType() != Mention::NONE &&
				mention->getMentionType() != Mention::APPO &&
				mention->getMentionType() != Mention::PRON);
}
bool CBRNEResultCollector :: isValidEntityMention ( const Mention * mention ) { if ( isLinkedEntityMention ( mention ) ) return ( isValidEntity ( _docTheory -> getEntitySet ( ) -> getEntityByMention ( mention -> getUID ( ) ) ) && mention -> getMentionType ( ) != Mention :: LIST && mention -> getMentionType ( ) != Mention :: NONE && mention -> getMentionType ( ) != Mention :: APPO ) ; else return ( mention -> getMentionType ( ) != Mention :: LIST && mention -> getMentionType ( ) != Mention :: NONE && mention -> getMentionType ( ) != Mention :: APPO && mention -> getMentionType ( ) != Mention :: PRON ) ; }
determines whether "mention" is part of printed output
for unlinked mentions: this function is also used to determine whether to output a new
entity for this mention
determines whether " mention " is part of printed output for unlinked mentions : this function is also used to determine whether to output a new entity for this mention
//mention->getMentionType() != Mention::PART &&   //CHANGE: PART's now get treated as DESC's
 //mention->getMentionType() != Mention::PART &&
