src/Generic/actors/LocationMentionResolver.cpp
// Get all possible resolutions from COUNTRIES table

Get all possible resolutions from COUNTRIES table
Get all possible resolutions from COUNTRIES table
std::vector<Gazetteer::GeoResolution_ptr> LocationMentionResolver::getAllPossibleCountryResolutions(std::vector<std::wstring>& canonicalNames) const {
	BOOST_FOREACH(std::wstring name, canonicalNames) {
		std::vector<Gazetteer::GeoResolution_ptr> resolutions = _gazetteer->countryLookup(name);
		if (resolutions.size() > 0)
			return resolutions;
	}
	return std::vector<Gazetteer::GeoResolution_ptr>();
}
std :: vector < Gazetteer :: GeoResolution_ptr > LocationMentionResolver :: getAllPossibleCountryResolutions ( std :: vector < std :: wstring > & canonicalNames ) const { BOOST_FOREACH ( std :: wstring name , canonicalNames ) { std :: vector < Gazetteer :: GeoResolution_ptr > resolutions = _gazetteer -> countryLookup ( name ) ; if ( resolutions . size ( ) > 0 ) return resolutions ; } return std :: vector < Gazetteer :: GeoResolution_ptr > ( ) ; }
Get all possible resolutions from COUNTRIES table
Get all possible resolutions from COUNTRIES table