Class NonLatinNameRule
java.lang.Object
org.opensextant.extractors.geo.rules.GeocodeRule
org.opensextant.extractors.geo.rules.NonLatinNameRule
GeocodeRule called only if document is non-Latin such as C/J/K or MiddleEastern scripts.
-
Field Summary
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
evaluate
(PlaceCandidate name, org.opensextant.data.Place geo) The one evaluation scheme that all rules must implement.boolean
Override here as needed.Methods inherited from class org.opensextant.extractors.geo.rules.GeocodeRule
evaluate, filterOutByFrequency, internalPlaceID, isRelevant, isShort, logMsg, reset, sameBoundary, sameCountry, sameCountry, sameLexicalName, setBoundaryObserver, setCountryObserver, setDefaultMethod, setGeohash, setLocationObserver, setTextCase, textCase
-
Constructor Details
-
NonLatinNameRule
public NonLatinNameRule()
-
-
Method Details
-
filterByNameOnly
Description copied from class:GeocodeRule
Override here as needed.- Overrides:
filterByNameOnly
in classGeocodeRule
- Returns:
-
evaluate
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 classGeocodeRule
- Parameters:
name
- matched name in textgeo
- gazetteer entry or location
-