Class ProvinceNameSetter

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

public class ProvinceNameSetter extends GeocodeRule
  • Constructor Details

    • ProvinceNameSetter

      public ProvinceNameSetter(org.opensextant.util.GeonamesUtility geonamesUtil) throws IOException
      Configure name helper if you want Province name resolution and other things..
      Throws:
      IOException
  • Method Details

    • assignProvinceName

      protected void assignProvinceName(org.opensextant.data.Place geo)
    • evaluate

      public void evaluate(List<PlaceCandidate> names)
      Apply a Province name to a chosen place
      Overrides:
      evaluate in class GeocodeRule
      Parameters:
      names - list of found place names
    • 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