模糊子串匹配:Snapchat上的设备模糊好友搜索
Fuzzy Substring Matching: On-device Fuzzy Friend Search at Snapchat
摘要:
在Snapchat应用程序上,大约50%的查询都是为了找到合适的朋友进行互动。由于每个人都有一个独特的朋友列表,并且这个列表不是很大(最多几千个),因此在用户的设备上本地执行此搜索是有意义的。此外,朋友列表已经可以用于其他目的,例如显示聊天提要,并且通过避免服务器往返调用可以显著节省延迟。过去,我们采用子字符串匹配,将前缀匹配放在结果列表的顶部。在资源受限的设备上以及在错别字盛行的环境中引入执行模糊搜索的能力既谨慎又具有挑战性。在本文中,我们描述了我们的高效和准确的两步模糊搜索方法,其特征在于跳过二元检索层和一种新的本地Levenshtein距离计算用于最终排名。
英文摘要:
About 50% of all queries on Snapchat app are targeted at finding the right friend to interact with. Since everyone has a unique list of friends and that list is not very large (maximum a few thousand), it makes sense to perform this search locally, on users' devices. In addition, the friend list is already available for other purposes, such as showing the chat feed, and the latency savings can be significant by avoiding a server round-trip call. Historically, we resorted to substring matching, ranking prefix matches at the top of the result list. Introducing the ability to perform fuzzy search on a resource-constrained device and in the environment where typo's are prevalent is both prudent and challenging. In this paper, we describe our efficient and accurate two-step approach to fuzzy search, characterized by a skip-bigram retrieval layer and a novel local Levenshtein distance computation used for final ranking.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。