从一页文本中挑选一个澳大利亚地址

发布于 2024-10-09 23:48:30 字数 153 浏览 0 评论 0原文

我正在尝试解析散文段落中任何可能类似于地址的内容。我有一个要匹配的地址数据库,这些是我唯一感兴趣的地址。我正在使用灯服务器,但技术特定的答案不是我现在需要的。更多的是如何的问题。

有人可以提供想法吗?也许正则表达式?或者也许我应该使用城市/州等数据库?

谢谢。

I am trying to parse a prose paragraph for anything that might resemble an address. I have a database of addresses I am matching against and these are the only addresses I am interested in. I'm using a lamp server but technology specific answers aren't what I require right now. More of a question of how.

Can anyone provide ideas? Perhaps Regex? or perhaps I should use a database of cities/states etc?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一个人练习一个人 2024-10-16 23:48:31

看起来这个问题还没有得到解答,因为完全不清楚问题参数是什么。如果您想要问题的更具体答案,请更全面地描述您的问题。

一般来说,我建议使用一些已知数据来解决这样的问题……一些单词或格式的小集合,这些单词或格式可以表达和解决,然后匹配这些单词的上下文,看看它们是否真的充实到一个完整的地址。

It looks like this question hasn't gotten answered because it's entirely unclear what the problem parameters are. If you want a more specific answer to a problem, please describe your problem more fully.

In general I would suggest aproaching a problem like this using some piece of known data ... small collection of words or formats that delieniate and address, then match on the context of those words to see if they really flesh out to a full address.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文