src/PredFinder/common/ElfMultiDoc.cpp
// Store the URI by type and name string for each name

Store the URI by type and name string for each name
Store the URI by type and name string for each name
BOOST_FOREACH(std::wstring name_string, trimmed_names) {
		if (name_string.length() > 0) {
			EntityTypeAndNamePairToXDocIdMap::key_type type_name_key = 
				EntityTypeAndNamePairToXDocIdMap::key_type(entity_type, name_string);
			if (ElfMultiDoc::_entity_type_and_name_to_xdoc_id.find(type_name_key) != 
				ElfMultiDoc::_entity_type_and_name_to_xdoc_id.end()) {
				SessionLogger::info("LEARNIT") << "ElfMultiDoc::load_xdoc_maps(): Warning, duplicate name: " 
					<< entity_type << ", " << UnicodeUtil::toUTF8StdString(name_string) << std::endl;
			} else {
				ElfMultiDoc::_entity_type_and_name_to_xdoc_id[type_name_key] = xdoc_id;
			}
		}
	}
BOOST_FOREACH ( std :: wstring name_string , trimmed_names ) { if ( name_string . length ( ) > 0 ) { EntityTypeAndNamePairToXDocIdMap :: key_type type_name_key = EntityTypeAndNamePairToXDocIdMap :: key_type ( entity_type , name_string ) ; if ( ElfMultiDoc :: _entity_type_and_name_to_xdoc_id . find ( type_name_key ) != ElfMultiDoc :: _entity_type_and_name_to_xdoc_id . end ( ) ) { SessionLogger :: info ( " " ) << " " << entity_type << " " << UnicodeUtil :: toUTF8StdString ( name_string ) << std :: endl ; } else { ElfMultiDoc :: _entity_type_and_name_to_xdoc_id [ type_name_key ] = xdoc_id ; } } }
Store the URI by type and name string for each name
Store the URI by type and name string for each name