Class HeatMapRule
java.lang.Object
org.opensextant.extractors.geo.rules.GeocodeRule
org.opensextant.extractors.geo.rules.HeatMapRule
-
Field Summary
FieldsFields inherited from class org.opensextant.extractors.geo.rules.GeocodeRule
AVG_WORD_LEN, boundaryObserver, coordObserver, countryObserver, defaultMethod, LEX1, LEX2, locationOnly, log, LOWERCASE, NAME, textCase, UPPERCASE, weight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidevaluate(List<PlaceCandidate> names) Identify the distinct potential named places by location Group places by geohash bins at two levels geohash 3 and geohash 4.voidevaluate(PlaceCandidate name, org.opensextant.data.Place geo) The one evaluation scheme that all rules must implement.voidreset()no-op, unless overriden.Methods inherited from class org.opensextant.extractors.geo.rules.GeocodeRule
filterByNameOnly, filterOutByFrequency, internalPlaceID, isRelevant, isShort, logMsg, sameBoundary, sameCountry, sameCountry, sameLexicalName, setBoundaryObserver, setCountryObserver, setDefaultMethod, setGeohash, setLocationObserver, setTextCase, textCase
-
Field Details
-
HEATMAP_RULE
- See Also:
-
HEATMAP_ADMIN_RULE
- See Also:
-
-
Constructor Details
-
HeatMapRule
public HeatMapRule()
-
-
Method Details
-
reset
public void reset()Description copied from class:GeocodeRuleno-op, unless overriden.- Overrides:
resetin classGeocodeRule
-
evaluate
Description copied from class:GeocodeRuleThe one evaluation scheme that all rules must implement. Given a single text match and a location, consider if the geo is a good geocoding for the match.- Specified by:
evaluatein classGeocodeRule- Parameters:
name- matched name in textgeo- gazetteer entry or location
-
evaluate
Identify the distinct potential named places by location Group places by geohash bins at two levels geohash 3 and geohash 4. Give greater weight to those places in finer grained buckets. I.e., If the various named places in the document appear closer together, then it is likely those locations are the true ones so increment their score.- Overrides:
evaluatein classGeocodeRule- Parameters:
names- list of found place names
-