Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to return the raw, unformatted addresses #22

Open
mrxiaohe opened this issue Apr 20, 2021 · 0 comments
Open

Is there a way to return the raw, unformatted addresses #22

mrxiaohe opened this issue Apr 20, 2021 · 0 comments

Comments

@mrxiaohe
Copy link

When I use pyap.parse() on the address below, the full address is formatted where the newline character \n is replaced by a comma and a space. I wonder if there is a way to also get the extracted but unformatted address. This might be useful if, say, a user would like to get the span of an address in the original text where the address is extracted from. Thanks!

address = """14234 Wilshire Blvd
Los Angeles, CA 90011"""

pyap.parse(address, country='US')[0].full_address
#14234 Wilshire Blvd, Los Angeles, CA 90011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant