src/Generic/theories/MentionConfidence.cpp
/* true if the name of entity precedes mention in an earlier sentence */
true if the name of entity precedes mention in an earlier sentence
true if the name of entity precedes mention in an earlier sentence
bool MentionConfidence::entityNamePrecedesMentSentence(const Mention* ment, const Entity *ent, const EntitySet *ent_set){
	int sent_no = ment->getSentenceNumber();	
	for (int oment_no = 0; oment_no < ent->getNMentions(); oment_no++){
		MentionUID oment_uid = ent->getMention(oment_no);
		int osent_no = oment_uid.sentno();
		if (osent_no >= sent_no)
			continue;
		Mention *oth_ment = ent_set->getMention(oment_uid);
		if (oth_ment->getMentionType() == Mention::NAME) 
			return true;
	}
	return false;
}
bool MentionConfidence :: entityNamePrecedesMentSentence ( const Mention * ment , const Entity * ent , const EntitySet * ent_set ) { int sent_no = ment -> getSentenceNumber ( ) ; for ( int oment_no = 0 ; oment_no < ent -> getNMentions ( ) ; oment_no ++ ) { MentionUID oment_uid = ent -> getMention ( oment_no ) ; int osent_no = oment_uid . sentno ( ) ; if ( osent_no >= sent_no ) continue ; Mention * oth_ment = ent_set -> getMention ( oment_uid ) ; if ( oth_ment -> getMentionType ( ) == Mention :: NAME ) return true ; } return false ; }
true if the name of entity precedes mention in an earlier sentence
true if the name of entity precedes mention in an earlier sentence
/// walk all mentions of this ent, looking for ones in earlier sentences
