TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Detect/Parse Mailing Addresses in Text

2 点作者 drew_kutchar大约 14 年前
Are there any open source/commercial libraries out there that can detect mailing addresses in text, just like how Apple's Mail app underlines addresses on the Mac/iPhone.<p>I've been doing a little online research and the ideas seem to be either to use Regex or a full on NLP package such as Stanford's NLP, which usually are pretty massive. I doubt iPhone has a 500MB NLP package in there, which makes me to believe there should be an easier way. Too bad UIDataDetectors is not open source.<p>Thanks,<p>Drew

1 comment

nfriedly大约 14 年前
Are you only trying to detect US addresses, or anywhere in the world?<p>For US addresses, a quick check for known zip codes or state names/abbreviations might be a good place to start if you're looking to roll your own.
评论 #2257095 未加载