pelias / parser

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

apply penalty to postcode solutions in certain patterns #156

Closed missinglink closed 2 years ago

missinglink commented 2 years ago

proposed solution for https://github.com/pelias/parser/issues/155

this PR applies a penalty to solutions where a postcode classification exists but it might be better to score a solution containing a housenumber classification higher.

eg. {street}, {housenumber} solutions should generally be preferable to {street}, {postcode} solutions.

resolves https://github.com/pelias/parser/issues/155