src/ICEWS_LocRes_Branch/LocationMentionResolver.cpp
// measures the strength of a candidate resolution relative to the set of georesolutions that were made unambiguously

measures the strength of a candidate resolution relative to the set of georesolutions that were made unambiguously
measures the strength of a candidate resolution relative to the set of georesolutions that were made unambiguously
float ComboLMR::getAssociationScore(Gazetteer::GeoResolution_ptr candidateResolution) const
{
	if (_countryCounts.empty() || !candidateResolution->countryInfo)
	{
		return 1;
	}
	double distance_to_nearest_resolution = distanceToNearestResolution(candidateResolution);
	std::map<Symbol, float>::const_iterator it = _countryCounts.find(candidateResolution->countryInfo->isoCode);
	if (it == _countryCounts.end()) return -log(static_cast<float>(distance_to_nearest_resolution));
	else return (*it).second;
}
float ComboLMR :: getAssociationScore ( Gazetteer :: GeoResolution_ptr candidateResolution ) const { if ( _countryCounts . empty ( ) || ! candidateResolution -> countryInfo ) { return 1 ; } double distance_to_nearest_resolution = distanceToNearestResolution ( candidateResolution ) ; std :: map < Symbol , float > :: const_iterator it = _countryCounts . find ( candidateResolution -> countryInfo -> isoCode ) ; if ( it == _countryCounts . end ( ) ) return - log ( static_cast < float > ( distance_to_nearest_resolution ) ) ; else return ( * it ) . second ; }
measures the strength of a candidate resolution relative to the set of georesolutions that were made unambiguously
measures the strength of a candidate resolution relative to the set of georesolutions that were made unambiguously
// if there are no unambiguous mentions in the document, or if the candidate is not affiliated with any specific countries (e.g. "Persian Gulf"), return 1
 // for bigger geonames tables, some entries are not 
