You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was checking out libpostal, and saw something that could be improved.
Is anyone tried to add some more label or rename the existing label of parsed address?
Thanks in advance
The text was updated successfully, but these errors were encountered:
Renaming an existing label can be done as a post-processing step in any programming language with a mapping dictionary. To change "house_number" to "building_number" in Python:
parsed = parse_address('A-16 Sector-63 Noida, Uttar Pradesh, 201303 India')
mappings = {'house_number': 'building_number'}
parsed = [(mappings.get(label, label), value) for label, value in parsed]
As far as adding new labels/examples, etc. the entire training data is freely available. There's some information in the README about how to download it from the Internet Archive and there are several issues in the history where people have trained country-specific models, etc. It's a fairly large undertaking to retrain the parser on the global dataset but you can if you want.
Hi!
I was checking out libpostal, and saw something that could be improved.
Is anyone tried to add some more label or rename the existing label of parsed address?
Thanks in advance
The text was updated successfully, but these errors were encountered: