src/Generic/actors/ActorMentionFinder.cpp
// Add a new actor mention for each resolution that gives us a new actor ID
//  (sometimes we will have already gotten the right actor via an actor pattern)

Add a new actor mention for each resolution that gives us a new actor ID
(sometimes we will have already gotten the right actor via an actor pattern)
Add a new actor mention for each resolution that gives us a new actor ID ( sometimes we will have already gotten the right actor via an actor pattern )
BOOST_FOREACH(Gazetteer::ScoredGeoResolution sgr, sortedCandidateResolutions) {
					ScoredActorMention scoredLocationActorMention = makeProperNounActorMentionFromGazetteer(ment, sgr, sentTheory, GAZETTEER_SYM);
					if (scoredLocationActorMention.second) {
						ProperNounActorMention_ptr newPnam = boost::dynamic_pointer_cast<ProperNounActorMention>(scoredLocationActorMention.second);
						if (!actorAlreadyFound(newPnam->getActorId(), ment, result) && !actorAlreadyFound(newPnam->getActorId(), actorMentions))
							result.insert(scoredLocationActorMention);
					}
				}
BOOST_FOREACH ( Gazetteer :: ScoredGeoResolution sgr , sortedCandidateResolutions ) { ScoredActorMention scoredLocationActorMention = makeProperNounActorMentionFromGazetteer ( ment , sgr , sentTheory , GAZETTEER_SYM ) ; if ( scoredLocationActorMention . second ) { ProperNounActorMention_ptr newPnam = boost :: dynamic_pointer_cast < ProperNounActorMention > ( scoredLocationActorMention . second ) ; if ( ! actorAlreadyFound ( newPnam -> getActorId ( ) , ment , result ) && ! actorAlreadyFound ( newPnam -> getActorId ( ) , actorMentions ) ) result . insert ( scoredLocationActorMention ) ; } }
Add a new actor mention for each resolution that gives us a new actor ID
(sometimes we will have already gotten the right actor via an actor pattern)
Add a new actor mention for each resolution that gives us a new actor ID ( sometimes we will have already gotten the right actor via an actor pattern )
// Look both in the result (so far) as well as the existing actorMentions for this actor
