src/Generic/icews/EventMentionFinder.cpp
// Now add every event mention except the best one to the duplicates list.

Now add every event mention except the best one to the duplicates list.
Now add every event mention except the best one to the duplicates list .
BOOST_FOREACH(ICEWSEventMention_ptr eventMention, eventMentionGroup) {
		if ((eventMention != best.first) && (duplicateEvents.find(eventMention) == duplicateEvents.end())) {
			duplicateEvents.insert(eventMention);
			std::wostringstream msg;
			msg << L"Discarding event:\n";
			eventMention->dump(msg, "      ");
			msg << L"\n    ...because it is a duplicate of...\n";
			best.first->dump(msg, "      ");
			msg << L"\n    ...with key: \"" << duplicateRemovalKey << "\"";
			SessionLogger::info("ICEWS") << msg.str();
		}
	}
BOOST_FOREACH ( ICEWSEventMention_ptr eventMention , eventMentionGroup ) { if ( ( eventMention != best . first ) && ( duplicateEvents . find ( eventMention ) == duplicateEvents . end ( ) ) ) { duplicateEvents . insert ( eventMention ) ; std :: wostringstream msg ; msg << L" \n " ; eventMention -> dump ( msg , " " ) ; msg << L" \n \n " ; best . first -> dump ( msg , " " ) ; msg << L" \n \" " << duplicateRemovalKey << " \" " ; SessionLogger :: info ( " " ) << msg . str ( ) ; } }
Now add every event mention except the best one to the duplicates list.
Now add every event mention except the best one to the duplicates list .