Class ProvinceNameSetter
java.lang.Object
org.opensextant.extractors.geo.rules.GeocodeRule
org.opensextant.extractors.geo.rules.ProvinceNameSetter
-
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
ConstructorsConstructorDescriptionProvinceNameSetter(org.opensextant.util.GeonamesUtility geonamesUtil) Configure name helper if you want Province name resolution and other things.. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassignProvinceName(org.opensextant.data.Place geo) voidevaluate(List<PlaceCandidate> names) Apply a Province name to a chosen placevoidevaluate(PlaceCandidate name, org.opensextant.data.Place geo) The one evaluation scheme that all rules must implement.Methods inherited from class org.opensextant.extractors.geo.rules.GeocodeRule
filterByNameOnly, filterOutByFrequency, internalPlaceID, isRelevant, isShort, logMsg, reset, sameBoundary, sameCountry, sameCountry, sameLexicalName, setBoundaryObserver, setCountryObserver, setDefaultMethod, setGeohash, setLocationObserver, setTextCase, textCase
-
Constructor Details
-
ProvinceNameSetter
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
Apply a Province name to a chosen place- Overrides:
evaluatein classGeocodeRule- Parameters:
names- list of found place names
-
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
-