pelias / parser

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

Parsing Belgium street name #182

Open gmarti opened 3 weeks ago

gmarti commented 3 weeks ago

Describe the bug Autocomplete for Ter Waarde 91 or Ter Waarde 91, Ypres, Belgium or Ter Waarde 91, 8900 Ypres, Belgium always fails to return the proper result because pelias parser seems to want Waarde as a locality

       "santizer:text:pelias_parser": [[](https://pelias.github.io/compare/#)
          "0.60 ➜ locality='Waarde', postcode='8900', country='Belgium'",
          "0.57 ➜ postcode='8900', locality='Ypres', country='Belgium'"
        ]

Steps to Reproduce https://pelias.github.io/compare/#/v1/autocomplete?text=Ter+Waarde+91%2C+Ypres%2C+Belgium&debug=1

trying to force address doesn't work either https://pelias.github.io/compare/#/v1/autocomplete?layers=address&text=Ter+Waarde+91%2C+Ypres%2C+Belgium&debug=1

Expected behavior Find this result https://pelias.github.io/compare/#/v1/search?text=Ter+Waarde+91%2C+Ypres%2C+Belgium&debug=1 https://pelias.github.io/compare/#/v1/place?ids=openaddresses%3Aaddress%3Abe%2Fvlg%2Fbosa-region-flanders-nl%3A91ab227c88a0dfad&debug=1

gmarti commented 2 weeks ago

@missinglink Sorry to bother you, is there anything I can do to help with this ?

Maybe I can have a look at a fix, but I don't understand where and what happens

missinglink commented 2 weeks ago

You can try the command listed in the Quick Start section of the readme, it outputs detailed parsing information:

https://github.com/pelias/parser?tab=readme-ov-file#quick-start