vladimarius / pyap

Python address detector and parser
MIT License
200 stars 60 forks source link

`match_start` and `match_end` refer to the normalized text, not the original #32

Open rmehtany opened 1 year ago

rmehtany commented 1 year ago

In the output of parse(some_text=text), the address objects have fields match_start and match_end, which should refer to the location of the start and end of addresses. Rather, they refer to the start and end of addresses in the string AddressParser._normalize_string(text).