src/PredFinder/common/ElfMultiDoc.cpp
// Now step through the triples, handling conflicts and creating new clusters (with
// new XDoc IDs) where necessary.

Now step through the triples, handling conflicts and creating new clusters (with
new XDoc IDs) where necessary.
Now step through the triples handling conflicts and creating new clusters ( with new XDoc IDs ) where necessary .
BOOST_FOREACH(std::vector<std::wstring> triple, triples) {
		XDocIdType xdoc_id(triple[0]);
		Symbol entity_type(triple[1]); 
		std::wstring all_names(triple[2]); 
		std::vector<std::wstring> split_names;
		boost::algorithm::split(split_names, all_names, boost::algorithm::is_from_range(L',', L','));
		std::vector<std::wstring> trimmed_names;
		BOOST_FOREACH(std::wstring split_name, split_names) {
			std::wstring name = boost::algorithm::trim_copy(split_name);
			if (!name.empty()) {
				trimmed_names.push_back(name);
			}
		}
		SetOfStrings conflict_names;
		bool added_conflicts = find_and_handle_conflicts(trimmed_names, xdoc_id, entity_type, conflict_names);
		if (!added_conflicts) {
			store_entity_type_and_name_to_xdoc_id(trimmed_names, entity_type, xdoc_id);
		}
	}
BOOST_FOREACH ( std :: vector < std :: wstring > triple , triples ) { XDocIdType xdoc_id ( triple [ 0 ] ) ; Symbol entity_type ( triple [ 1 ] ) ; std :: wstring all_names ( triple [ 2 ] ) ; std :: vector < std :: wstring > split_names ; boost :: algorithm :: split ( split_names , all_names , boost :: algorithm :: is_from_range ( L' ' , L' ' ) ) ; std :: vector < std :: wstring > trimmed_names ; BOOST_FOREACH ( std :: wstring split_name , split_names ) { std :: wstring name = boost :: algorithm :: trim_copy ( split_name ) ; if ( ! name . empty ( ) ) { trimmed_names . push_back ( name ) ; } } SetOfStrings conflict_names ; bool added_conflicts = find_and_handle_conflicts ( trimmed_names , xdoc_id , entity_type , conflict_names ) ; if ( ! added_conflicts ) { store_entity_type_and_name_to_xdoc_id ( trimmed_names , entity_type , xdoc_id ) ; } }
Now step through the triples, handling conflicts and creating new clusters (with
new XDoc IDs) where necessary.
Now step through the triples handling conflicts and creating new clusters ( with new XDoc IDs ) where necessary .
// ACE entity type
 // Comma-separated list of equivalent names
