pelias / parser

natural language classification engine for geocoding
https://parser.demo.geocode.earth
MIT License
55 stars 27 forks source link

Option to not use the WhosonFirstClassifier for AddressParser #173

Open mansoor-sajjad opened 1 year ago

mansoor-sajjad commented 1 year ago

pelias-parser has classifier called WhosonFirstClassifier to classify the token in the given address string as locality, region and country.

In our usecase, a lot of Norwegian street names are classified as a localities and regions.

For example:

Eikeland is classified as locality even if land is the valid street type in address Nordre Eikeland 50 Haga is classified as locality and bru is classified as region in address Haga bru 76

This results in pelias-api filtering out the address layer.

Solution

Solution may be to optionally not use the WhosonfirstClassifier.

Can we make optional using the configuration, like it is done for the admin unit lookup from Whos on First for data importers like pelias-csv-importer using the following configuration.

"imports": {
 "adminLookup": {
   "enabled": false
 },
},

We can add the configuration option in the pelias-config, which pelias-api can send further into pelias-parser using options parameter.