Class HeatMapRule

java.lang.Object
org.opensextant.extractors.geo.rules.GeocodeRule
org.opensextant.extractors.geo.rules.HeatMapRule

public class HeatMapRule extends GeocodeRule
  • Field Details

  • Constructor Details

    • HeatMapRule

      public HeatMapRule()
  • Method Details

    • reset

      public void reset()
      Description copied from class: GeocodeRule
      no-op, unless overriden.
      Overrides:
      reset in class GeocodeRule
    • evaluate

      public void evaluate(PlaceCandidate name, org.opensextant.data.Place geo)
      Description copied from class: GeocodeRule
      The 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:
      evaluate in class GeocodeRule
      Parameters:
      name - matched name in text
      geo - gazetteer entry or location
    • evaluate

      public void evaluate(List<PlaceCandidate> names)
      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:
      evaluate in class GeocodeRule
      Parameters:
      names - list of found place names