Class NonLatinNameRule

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

public class NonLatinNameRule extends GeocodeRule
GeocodeRule called only if document is non-Latin such as C/J/K or MiddleEastern scripts.
  • Constructor Details

    • NonLatinNameRule

      public NonLatinNameRule()
  • Method Details

    • filterByNameOnly

      public boolean filterByNameOnly(PlaceCandidate name)
      Description copied from class: GeocodeRule
      Override here as needed.
      Overrides:
      filterByNameOnly in class GeocodeRule
      Returns:
    • 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