vladimarius / pyap

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

Certain Addresses not captured #18

Open RafaelCenzano opened 3 years ago

RafaelCenzano commented 3 years ago

Pyap doesn't seem to capture any addresses containing PO Boxes, Unit (number), and Floor (number)/ (number th) Floor.

vladimarius commented 3 years ago

Please provide some examples

RafaelCenzano commented 3 years ago
words = """
random text
testing
PO Box 234
Dallas, TX 75229-9647
other text
"""
addresses = pyap.parse(words, country="US")
print(addresses)
[]
RafaelCenzano commented 3 years ago
words = """
more random text
456 20th Ave Floor 10
Dallas TX 75229
other text
"""
addresses = pyap.parse(words, country="US")
print(addresses)
[]
RafaelCenzano commented 3 years ago
words = """
some text
456 20th Ave Unit 10
Dallas TX 75229
random text
"""
addresses = pyap.parse(words, country="US")
print(addresses)
[]